]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/844
authorCristy <urban-warrior@imagemagick.org>
Tue, 17 Oct 2017 11:05:56 +0000 (07:05 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 17 Oct 2017 11:05:56 +0000 (07:05 -0400)
coders/magick.c

index 7fb156ff1f400c1e449beb050c20326d9e267fe0..46634b03f294f0c2c8c5698727157c47225829ed 100644 (file)
@@ -13282,6 +13282,7 @@ static MagickBooleanType WriteMAGICKImage(const ImageInfo *image_info,
   status=OpenBlob(image_info,image,WriteBinaryBlobMode,exception);
   if (status == MagickFalse)
     {
+      blob=RelinquishMagickMemory(blob);
       (void) DestroyImageInfo(write_info);
       return(status);
     }