summaryrefslogtreecommitdiff
path: root/source/cbz/mucbz.c
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-10-05 19:40:50 +0100
committerRobin Watts <robin.watts@artifex.com>2016-10-06 11:49:46 +0100
commit994770e2010e21cd8f90bacc34b9fae8a6350a40 (patch)
tree727f87208f8cfde34128253a2948ac0c64319fa6 /source/cbz/mucbz.c
parent6870dfecd94c1dec0e7970464b11d3b9d5d1250a (diff)
downloadmupdf-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/cbz/mucbz.c')
-rw-r--r--source/cbz/mucbz.c2
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);
}