From 0b58f195240d712a0383f5f85cb9ba97b0c09edd Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 28 Jan 2018 10:17:21 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5764 --- coders/xcf.c | 2 ++ 1 file changed, 2 insertions(+) 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) } -- 2.40.0