From: Cristy Date: Sat, 28 Jan 2017 13:39:13 +0000 (-0500) Subject: ... X-Git-Tag: 7.0.4-7~54 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d15edf8fed6a04b0ad580bc8b3601346094176ca;p=imagemagick ... --- diff --git a/coders/tiff.c b/coders/tiff.c index 863019064..b1a9f9618 100644 --- a/coders/tiff.c +++ b/coders/tiff.c @@ -400,7 +400,10 @@ static Image *ReadGROUP4Image(const ImageInfo *image_info, offset=(ssize_t) fseek(file,(ssize_t) offset,SEEK_SET); length=WriteLSBLong(file,(unsigned int) length); if (ferror(file) != 0) - ThrowImageException(FileOpenError,"UnableToCreateTemporaryFile"); + { + (void) fclose(file); + ThrowImageException(FileOpenError,"UnableToCreateTemporaryFile"); + } (void) fclose(file); (void) CloseBlob(image); image=DestroyImage(image);