Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/628
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jul 29, 2017
1 parent bd416d9 commit 21d19d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coders/magick.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 21d19d0

Please sign in to comment.