From ba21957ed064e1960f39a0d3aac762f39ddc614a Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 26 Mar 2019 16:35:53 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1528 --- coders/dot.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- 2.40.0