diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-12-15 20:16:35 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-12-15 20:16:35 +0000 |
commit | ddbce91f5b70281f84a742845e9228ccfb607756 (patch) | |
tree | bbf4faed115c03856eec761b9d786794b9861045 | |
parent | adfcc880ee441c0dc86518db02b216e8d58231fa (diff) | |
download | mupdf-ddbce91f5b70281f84a742845e9228ccfb607756.tar.xz |
Another memsqueezing bug.
-rw-r--r-- | pdf/pdf_parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pdf/pdf_parse.c b/pdf/pdf_parse.c index 57713b21..18ce1f29 100644 --- a/pdf/pdf_parse.c +++ b/pdf/pdf_parse.c @@ -388,6 +388,7 @@ pdf_parse_dict(pdf_xref *xref, fz_stream *file, char *buf, int cap) fz_dict_put(dict, key, val); fz_drop_obj(val); + val = NULL; fz_drop_obj(key); key = NULL; } @@ -396,6 +397,7 @@ pdf_parse_dict(pdf_xref *xref, fz_stream *file, char *buf, int cap) { fz_drop_obj(dict); fz_drop_obj(key); + fz_drop_obj(val); fz_throw(ctx, "cannot parse dict"); } return dict; |