From: Cristy Date: Wed, 4 Jul 2018 18:17:07 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1192 X-Git-Tag: 7.0.8-5~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98a2cceae0dceccbfe54051167c2c80be1f13c3f;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1192 --- diff --git a/coders/mpc.c b/coders/mpc.c index 1a32695ab..3dd5cbec5 100644 --- a/coders/mpc.c +++ b/coders/mpc.c @@ -1470,7 +1470,11 @@ static MagickBooleanType WriteMPCImage(const ImageInfo *image_info,Image *image, switch (depth) { default: + { + colormap=(unsigned char *) RelinquishMagickMemory(colormap); ThrowWriterException(CorruptImageError,"ImageDepthNotSupported"); + break; + } case 32: { unsigned int