]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Wed, 20 Dec 2017 01:29:03 +0000 (20:29 -0500)
committerCristy <urban-warrior@imagemagick.org>
Wed, 20 Dec 2017 01:29:03 +0000 (20:29 -0500)
coders/png.c

index 1c691c66e00e04fd1984f308d1f006499f4a02ea..3b6b186bcc1c1465e044914d0a712c5b4882fbc0 100644 (file)
@@ -9254,7 +9254,8 @@ static MagickBooleanType WriteOnePNGImage(MngInfo *mng_info,
               {
                 (void) ThrowMagickException(exception,GetMagickModule(),
                   ResourceLimitError,"MemoryAllocationFailed","`%s'",
-                IMimage->filename);
+                  image->filename);
+                break;
               }
 
             for (i=0; i< (ssize_t) image_colors; i++)