]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/917
authorCristy <urban-warrior@imagemagick.org>
Mon, 25 Dec 2017 13:14:40 +0000 (08:14 -0500)
committerCristy <urban-warrior@imagemagick.org>
Mon, 25 Dec 2017 13:14:40 +0000 (08:14 -0500)
coders/mat.c

index 64d97fdafd5d8bee64948b8be815a33ea6eb0c95..347dc0101beecb5072f3c477c86ac653c41ff588 100644 (file)
@@ -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);