From dd30840686c40071e11a22818ebd9f2728a96f2f Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 24 Mar 2018 12:52:53 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1048 --- coders/miff.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.40.0