From: Cristy Date: Sun, 28 Jan 2018 15:17:21 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5764 X-Git-Tag: 7.0.7-23~236 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b58f195240d712a0383f5f85cb9ba97b0c09edd;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5764 --- diff --git a/coders/xcf.c b/coders/xcf.c index ead1e6ed1..72db89221 100644 --- a/coders/xcf.c +++ b/coders/xcf.c @@ -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) }