From 31cfd37a70696ed30a4c0abf34cadf5480992da6 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 24 Mar 2018 12:55:16 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1047 --- coders/mat.c | 2 ++ 1 file changed, 2 insertions(+) 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)); -- 2.40.0