From 3f4746d038041e0bc368fa99b3669d8230961620 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Tue, 27 Sep 2016 16:00:33 +0800 Subject: Bug 697156: tiff: Free tile arrays after use. --- source/fitz/load-tiff.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/fitz/load-tiff.c') diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c index b9d0916e..cfa8e2e2 100644 --- a/source/fitz/load-tiff.c +++ b/source/fitz/load-tiff.c @@ -1112,6 +1112,8 @@ fz_load_tiff_subimage(fz_context *ctx, unsigned char *buf, size_t len, int subim if (tiff.colormap) fz_free(ctx, tiff.colormap); if (tiff.stripoffsets) fz_free(ctx, tiff.stripoffsets); if (tiff.stripbytecounts) fz_free(ctx, tiff.stripbytecounts); + if (tiff.tileoffsets) fz_free(ctx, tiff.tileoffsets); + if (tiff.tilebytecounts) fz_free(ctx, tiff.tilebytecounts); if (tiff.tile) fz_free(ctx, tiff.tile); if (tiff.samples) fz_free(ctx, tiff.samples); if (tiff.profile) fz_free(ctx, tiff.profile); -- cgit v1.2.3