From 807a5ed8626f0cf0f8c6c4750cc740c1e8871afa Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 24 Aug 2019 17:38:25 -0400 Subject: [PATCH] ... --- coders/url.c | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.40.0