diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-10-05 19:40:50 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-10-06 11:49:46 +0100 |
commit | 994770e2010e21cd8f90bacc34b9fae8a6350a40 (patch) | |
tree | 727f87208f8cfde34128253a2948ac0c64319fa6 /source | |
parent | 6870dfecd94c1dec0e7970464b11d3b9d5d1250a (diff) | |
download | mupdf-994770e2010e21cd8f90bacc34b9fae8a6350a40.tar.xz |
Bug 697159: Fix memory leak in CBZ error handling.
If we fail to open a CBZ page, we were dropping the CBZ
specific part, but not the fz_page part.
Diffstat (limited to 'source')
-rw-r--r-- | source/cbz/mucbz.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/cbz/mucbz.c b/source/cbz/mucbz.c index 4cfb5ed6..cbd757bd 100644 --- a/source/cbz/mucbz.c +++ b/source/cbz/mucbz.c @@ -183,7 +183,7 @@ cbz_load_page(fz_context *ctx, cbz_document *doc, int number) fz_catch(ctx) { fz_free(ctx, data); - cbz_drop_page(ctx, page); + fz_drop_page(ctx, &page->super); fz_rethrow(ctx); } |