From: Cristy Date: Sat, 24 Mar 2018 16:52:53 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1048 X-Git-Tag: 7.0.7-28~21 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd30840686c40071e11a22818ebd9f2728a96f2f;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1048 --- diff --git a/coders/miff.c b/coders/miff.c index 827945267..2ca7c91c6 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -2065,7 +2065,10 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info, { status=SetQuantumFormat(image,quantum_info,FloatingPointQuantumFormat); if (status == MagickFalse) - ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed"); + { + quantum_info=DestroyQuantumInfo(quantum_info); + ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed"); + } } else if (image->depth < 16)