File ImageMagick-CVE-2017-7943.patch of Package ImageMagick.8212

From 2e3410d0a07c3e30a42c9626c00e180870907a6b Mon Sep 17 00:00:00 2001
From: Dirk Lemstra <dirk@git.imagemagick.org>
Date: Mon, 17 Apr 2017 18:08:02 +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 bfa60db..5c74114 100644
--- a/coders/svg.c
+++ b/coders/svg.c
@@ -3265,6 +3265,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);
     }