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);
         }

