From: Cristy Date: Sat, 24 Aug 2019 21:38:25 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-63~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=807a5ed8626f0cf0f8c6c4750cc740c1e8871afa;p=imagemagick ... --- diff --git a/coders/url.c b/coders/url.c index 79853da15..64cdeba09 100644 --- a/coders/url.c +++ b/coders/url.c @@ -207,6 +207,7 @@ static Image *ReadURLImage(const ImageInfo *image_info,ExceptionInfo *exception) ThrowFileException(exception,FileOpenError,"UnableToCreateTemporaryFile", read_info->filename); read_info=DestroyImageInfo(read_info); + image=DestroyImage(image); return((Image *) NULL); } (void) CopyMagickString(filename,image_info->magick,MagickPathExtent); @@ -233,6 +234,7 @@ static Image *ReadURLImage(const ImageInfo *image_info,ExceptionInfo *exception) MagickPathExtent); } read_info=DestroyImageInfo(read_info); + image=DestroyImage(image); return((Image *) NULL); } #else