From: Dirk Lemstra Date: Mon, 17 Apr 2017 16:07:48 +0000 (+0200) Subject: Fixed leak reported in: #427. X-Git-Tag: 7.0.5-5~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0e61972ff94e844fbb3ca927e476fc156c240a3;p=imagemagick Fixed leak reported in: #427. --- diff --git a/coders/svg.c b/coders/svg.c index 65162753c..7708a0ab5 100644 --- a/coders/svg.c +++ b/coders/svg.c @@ -3251,6 +3251,8 @@ static Image *ReadSVGImage(const ImageInfo *image_info,ExceptionInfo *exception) image->rows=svg_info->height; if (exception->severity >= ErrorException) { + svg_info=DestroySVGInfo(svg_info); + (void) RelinquishUniqueFileResource(filename); image=DestroyImage(image); return((Image *) NULL); }