From d15edf8fed6a04b0ad580bc8b3601346094176ca Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 28 Jan 2017 08:39:13 -0500 Subject: [PATCH] ... --- coders/tiff.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.40.0