From: Cristy Date: Tue, 26 Mar 2019 20:35:53 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1528 X-Git-Tag: 7.0.8-36~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba21957ed064e1960f39a0d3aac762f39ddc614a;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1528 --- diff --git a/coders/dot.c b/coders/dot.c index 4ece49434..a9410aa9f 100644 --- a/coders/dot.c +++ b/coders/dot.c @@ -129,7 +129,10 @@ static Image *ReadDOTImage(const ImageInfo *image_info,ExceptionInfo *exception) image=AcquireImage(image_info,exception); status=OpenBlob(image_info,image,ReadBinaryBlobMode,exception); if (status == MagickFalse) - return((Image *) NULL); + { + image=DestroyImageList(image); + return((Image *) NULL); + } read_info=CloneImageInfo(image_info); SetImageInfoBlob(read_info,(void *) NULL,0); (void) CopyMagickString(read_info->magick,"SVG",MagickPathExtent);