]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5764
authorCristy <urban-warrior@imagemagick.org>
Sun, 28 Jan 2018 15:17:21 +0000 (10:17 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 28 Jan 2018 15:17:21 +0000 (10:17 -0500)
coders/xcf.c

index ead1e6ed1d2d1aef7de368a3253612c1d3aa4d5b..72db89221f2357e33939e5c5c5a444c54cac2d35 100644 (file)
@@ -683,9 +683,11 @@ static MagickBooleanType load_level(Image *image,XCFDocInfo *inDocInfo,
             status=MagickTrue;
           break;
         case COMPRESS_ZLIB:
+          tile_image=DestroyImage(tile_image);
           ThrowBinaryException(CoderError,"ZipCompressNotSupported",
             image->filename)
         case COMPRESS_FRACTAL:
+          tile_image=DestroyImage(tile_image);
           ThrowBinaryException(CoderError,"FractalCompressNotSupported",
             image->filename)
       }