File ImageMagick-CVE-2016-10051.patch of Package ImageMagick.8212

From ecc03a2518c2b7dd375fde3a040fdae0bdf6a521 Mon Sep 17 00:00:00 2001
From: Cristy <urban-warrior@imagemagick.org>
Date: Fri, 5 Aug 2016 16:33:16 -0400
Subject: [PATCH] Prevent memory use after free

---
 ChangeLog    | 2 ++
 coders/pwp.c | 2 --
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: ImageMagick-6.8.8-1/coders/pwp.c
===================================================================
--- ImageMagick-6.8.8-1.orig/coders/pwp.c	2017-01-17 15:53:52.772959928 +0100
+++ ImageMagick-6.8.8-1/coders/pwp.c	2017-01-17 15:53:53.436970702 +0100
@@ -246,8 +246,6 @@ static Image *ReadPWPImage(const ImageIn
   }
   (void) RelinquishUniqueFileResource(read_info->filename);
   read_info=DestroyImageInfo(read_info);
-  (void) CloseBlob(pwp_image);
-  pwp_image=DestroyImage(pwp_image);
   if (EOFBlob(image) != MagickFalse)
     {
       char