]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sat, 28 Jan 2017 13:39:13 +0000 (08:39 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sat, 28 Jan 2017 13:39:13 +0000 (08:39 -0500)
coders/tiff.c

index 8630190645cc818c1cf7247b158f62a38c060f0f..b1a9f96185801e3d08f5e3e1f6e7e14eb48647a7 100644 (file)
@@ -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);