From: Cristy Date: Mon, 25 Dec 2017 13:14:40 +0000 (-0500) Subject: https://github.com/ImageMagick/ImageMagick/issues/917 X-Git-Tag: 7.0.7-16~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e55dc76263d03dafe5cb43bd7a0d7673f09214d4;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/917 --- diff --git a/coders/mat.c b/coders/mat.c index 64d97fdaf..347dc0101 100644 --- a/coders/mat.c +++ b/coders/mat.c @@ -959,6 +959,8 @@ MATLAB_KO: goto MATLAB_KO; filepos += MATLAB_HDR.ObjectSize + 4 + 4; + if (clone_info != (ImageInfo *) NULL) + clone_info=DestroyImageInfo(clone_info); clone_info=CloneImageInfo(image_info); if ((image != image2) && (image2 != (Image *) NULL)) image2=DestroyImage(image2);