File GraphicsMagick-pwp.c-memory-leak.patch of Package GraphicsMagick.7727

Index: GraphicsMagick-1.2.5/coders/pwp.c
===================================================================
--- GraphicsMagick-1.2.5.orig/coders/pwp.c	2018-01-02 11:59:54.202818182 +0100
+++ GraphicsMagick-1.2.5/coders/pwp.c	2018-01-02 12:00:27.947400282 +0100
@@ -232,6 +232,8 @@ static Image *ReadPWPImage(const ImageIn
       break;
   }
   DestroyImageInfo(clone_info);
+  CloseBlob(pwp_image);
+  DestroyImage(pwp_image);
   if (image) {
     if (EOFBlob(image))
       ThrowException(exception,CorruptImageError,UnexpectedEndOfFile,
openSUSE Build Service is sponsored by