From: dirk Date: Thu, 17 Dec 2015 06:19:27 +0000 (+0100) Subject: Fixed another leak. X-Git-Tag: 7.0.1-0~441 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9ed408ffc0401e23dfd98b843dd4ae4313c0255;p=imagemagick Fixed another leak. --- diff --git a/coders/psd.c b/coders/psd.c index 731ae1bcf..c2a9804d1 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -2000,6 +2000,7 @@ static Image *ReadPSDImage(const ImageInfo *image_info,ExceptionInfo *exception) if (status != MagickTrue) { (void) CloseBlob(image); + image=DestroyImageList(image); return((Image *) NULL); } }