From 4b9eeffe5b159ab5de3b3e1487c5e8bca8d0db39 Mon Sep 17 00:00:00 2001 From: Cristy Date: Thu, 27 Jul 2017 12:41:05 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/624 --- coders/mat.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/coders/mat.c b/coders/mat.c index 5a5325dc8..76a746fd5 100644 --- a/coders/mat.c +++ b/coders/mat.c @@ -1311,6 +1311,11 @@ done_reading: } } } + + if (quantum_info != (QuantumInfo *) NULL) + quantum_info=DestroyQuantumInfo(quantum_info); + if (clone_info) + clone_info=DestroyImageInfo(clone_info); } RelinquishMagickMemory(BImgBuff); -- 2.50.1