aboutsummaryrefslogtreecommitdiffstats
path: root/community/graphicsmagick/CVE-2017-11403.patch
blob: f3ae7b02986e6ee8a46137800a73e0aec058cdcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff -r b24f2a9b0dd7 -r d0a76868ca37 coders/png.c
--- a/coders/png.c	Mon Jul 10 11:31:05 2017 -0400
+++ b/coders/png.c	Mon Jul 10 12:40:55 2017 -0400
@@ -5161,8 +5161,8 @@
 
       if (image == (Image *) NULL)
         {
+          CloseBlob(previous);
           DestroyImageList(previous);
-          CloseBlob(previous);
           MngInfoFreeStruct(mng_info,&have_mng_structure);
           return((Image *) NULL);
         }