From 7eb87f9493a5fd5e9e48183d8e47a201dc3ef401 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sat, 29 Oct 2016 14:34:03 +0800 Subject: Don't check for NULL before calls to fz_free. --- source/fitz/load-tiff.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source') diff --git a/source/fitz/load-tiff.c b/source/fitz/load-tiff.c index 7730010b..a2c081ca 100644 --- a/source/fitz/load-tiff.c +++ b/source/fitz/load-tiff.c @@ -1357,11 +1357,11 @@ fz_load_tiff_info_subimage(fz_context *ctx, unsigned char *buf, size_t len, int fz_always(ctx) { /* Clean up scratch memory */ - 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.samples) fz_free(ctx, tiff.samples); - if (tiff.profile) fz_free(ctx, tiff.profile); + fz_free(ctx, tiff.colormap); + fz_free(ctx, tiff.stripoffsets); + fz_free(ctx, tiff.stripbytecounts); + fz_free(ctx, tiff.samples); + fz_free(ctx, tiff.profile); } fz_catch(ctx) { -- cgit v1.2.3