diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2016-10-29 14:34:03 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2016-11-02 01:33:30 +0800 |
commit | 7eb87f9493a5fd5e9e48183d8e47a201dc3ef401 (patch) | |
tree | 62ef51979b5d3f8ca7b0731487e9ceae8e1c9937 /source/fitz | |
parent | caea738413e6d08c860faee48c8c84d164aa1096 (diff) | |
download | mupdf-7eb87f9493a5fd5e9e48183d8e47a201dc3ef401.tar.xz |
Don't check for NULL before calls to fz_free.
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/load-tiff.c | 10 |
1 files changed, 5 insertions, 5 deletions
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) { |