From: Cristy Date: Wed, 4 Jul 2018 18:21:29 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1191 X-Git-Tag: 7.0.8-5~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b352c0be410ad900469a079e389178f878aded8;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1191 --- diff --git a/coders/miff.c b/coders/miff.c index 2dd480861..8ba78ca6e 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -1221,8 +1221,11 @@ static Image *ReadMIFFImage(const ImageInfo *image_info, switch (image->depth) { default: + { colormap=(unsigned char *) RelinquishMagickMemory(colormap); ThrowMIFFException(CorruptImageError,"ImageDepthNotSupported"); + break; + } case 8: { unsigned char