From b0e61972ff94e844fbb3ca927e476fc156c240a3 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Mon, 17 Apr 2017 18:07:48 +0200 Subject: [PATCH] Fixed leak reported in: #427. --- coders/svg.c | 2 ++ 1 file changed, 2 insertions(+) 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); } -- 2.40.0