diff options
author | Robin Watts <robin.watts@artifex.com> | 2011-12-15 19:49:16 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2011-12-15 19:49:16 +0000 |
commit | e6118ac1b13cc49f637861fccbc32a10c4ea1ea7 (patch) | |
tree | 4ccb1fb5adf96d7794872502ee975825f250054a /pdf/pdf_parse.c | |
parent | 3031a2480fe775df825de6674495d01ae2607d93 (diff) | |
download | mupdf-e6118ac1b13cc49f637861fccbc32a10c4ea1ea7.tar.xz |
Various Memsqueezing fixes.
Fixes for leaks (and SEGVs, division by zeros etc) seen when
Memsqueezing.
Diffstat (limited to 'pdf/pdf_parse.c')
-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 7174c23a..57713b21 100644 --- a/pdf/pdf_parse.c +++ b/pdf/pdf_parse.c @@ -363,7 +363,9 @@ pdf_parse_dict(pdf_xref *xref, fz_stream *file, char *buf, int cap) val = fz_new_int(ctx, a); fz_dict_put(dict, key, val); fz_drop_obj(val); + val = NULL; fz_drop_obj(key); + key = NULL; goto skip; } if (tok == PDF_TOK_INT) |