diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-01-24 19:02:17 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-01-24 19:05:08 +0000 |
commit | af2998fa966f4cd83d503b208fc9e3a24e9a2397 (patch) | |
tree | 6a85bcdb2958657c07ebbd05c3c6bc93aa08eddf /pdf | |
parent | 79edec2f5800d97e05efac0cc6f61803854b53d8 (diff) | |
download | mupdf-af2998fa966f4cd83d503b208fc9e3a24e9a2397.tar.xz |
Remove incorrect free in error case.
This was causing a SEGV in cluster testing of Bug690724.pdf.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_xref.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pdf/pdf_xref.c b/pdf/pdf_xref.c index 796c9ce3..bfd04acb 100644 --- a/pdf/pdf_xref.c +++ b/pdf/pdf_xref.c @@ -358,17 +358,17 @@ pdf_read_new_xref(pdf_xref *xref, char *buf, int cap) } } } - fz_catch(ctx) + fz_always(ctx) { fz_close(stm); + } + fz_catch(ctx) + { fz_drop_obj(trailer); fz_drop_obj(index); - fz_drop_obj(obj); fz_rethrow(ctx); } - fz_close(stm); - return trailer; } |