File ImageMagick-CVE-2017-11752.patch of Package ImageMagick.8212

diff --git a/coders/magick.c b/coders/magick.c
index 887d88e29d..36c8ca3994 100644
--- a/coders/magick.c
+++ b/coders/magick.c
@@ -13067,7 +13067,10 @@ static Image *ReadMAGICKImage(const ImageInfo *image_info,
         break;
       }
   if (blob == (const void *) NULL)
-    ThrowReaderException(OptionError,"UnrecognizedImageFormat");
+    {
+      blob_info=DestroyImageInfo(blob_info);
+      ThrowReaderException(OptionError,"UnrecognizedImageFormat");
+    }
   image=BlobToImage(blob_info,blob,extent,exception);
   blob_info=DestroyImageInfo(blob_info);
   if (image == (Image *) NULL)