From: Cristy Date: Thu, 6 Jul 2017 12:10:23 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/547 X-Git-Tag: 7.0.6-1~55 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b76b2ffff70f2c314a069ea953f4a45b1e2ce5e6;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/547 --- diff --git a/coders/mat.c b/coders/mat.c index 0171eb772..f9155c537 100644 --- a/coders/mat.c +++ b/coders/mat.c @@ -1301,7 +1301,8 @@ done_reading: if (quantum_info != (QuantumInfo *) NULL) quantum_info=DestroyQuantumInfo(quantum_info); END_OF_READING: - clone_info=DestroyImageInfo(clone_info); + if (clone_info) + clone_info=DestroyImageInfo(clone_info); CloseBlob(image);