From: Cristy Date: Sat, 24 Mar 2018 16:55:16 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1047 X-Git-Tag: 7.0.7-28~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31cfd37a70696ed30a4c0abf34cadf5480992da6;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1047 --- diff --git a/coders/mat.c b/coders/mat.c index 3375aa63b..28f1baa49 100644 --- a/coders/mat.c +++ b/coders/mat.c @@ -1217,6 +1217,8 @@ RestoreMSCWarning clone_info=DestroyImageInfo(clone_info); if ((image != image2) && (image2 != (Image *) NULL)) image2=DestroyImage(image2); + if (quantum_info != (QuantumInfo *) NULL) + quantum_info=DestroyQuantumInfo(quantum_info); ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed"); } (void) memset(BImgBuff,0,ldblk*sizeof(double));