]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1532
authorCristy <mikayla-grace@urban-warrior.org>
Fri, 29 Mar 2019 00:35:53 +0000 (20:35 -0400)
committerCristy <mikayla-grace@urban-warrior.org>
Fri, 29 Mar 2019 00:35:53 +0000 (20:35 -0400)
coders/tiff.c

index 72abaf8dc5da8e03c39807dfbfc4ffd6380ff858..11387aa3ab8ba8ba136274cf096219bd5b82cd99 100644 (file)
@@ -3506,6 +3506,11 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info,
     TIFFUnmapBlob);
   if (tiff == (TIFF *) NULL)
     return(MagickFalse);
+  if (exception->severity > ErrorException)
+    {
+      TIFFClose(tiff);
+      return(MagickFalse);
+    }
   (void) DeleteImageProfile(image,"tiff:37724");
   scene=0;
   debug=IsEventLogging();