diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-27 16:00:33 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-09-28 00:10:39 +0800 |
commit | 3f4746d038041e0bc368fa99b3669d8230961620 (patch) | |
tree | a8e7b1dfb6fcb2c547ef7bd8be7038307720da18 | |
parent | 47f73a28f3bbcab24d8f02bc61028270fb33f26f (diff) | |
download | mupdf-3f4746d038041e0bc368fa99b3669d8230961620.tar.xz |
Bug 697156: tiff: Free tile arrays after use.
-rw-r--r-- | source/fitz/load-tiff.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |