]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Thu, 7 Sep 2017 11:31:54 +0000 (07:31 -0400)
committerCristy <urban-warrior@imagemagick.org>
Thu, 7 Sep 2017 11:31:54 +0000 (07:31 -0400)
coders/tiff.c

index 2376e8b2bd1924890155a9f4e52fba076110d84d..e3e285054b9923a171c100b557c05ac15561006d 100644 (file)
@@ -1645,7 +1645,10 @@ RestoreMSCWarning
       }
     status=SetImageExtent(image,image->columns,image->rows,exception);
     if (status == MagickFalse)
-      return(DestroyImageList(image));
+      {
+        TIFFClose(tiff);
+        return(DestroyImageList(image));
+      }
     /*
       Allocate memory for the image and pixel buffer.
     */