commit | ac38f521356b576ab57c2e74cc541548d80a8bdc | [log] [tgz] |
---|---|---|
author | Cristy <urban-warrior@imagemagick.org> | Sun Jul 23 10:40:17 2017 -0400 |
committer | Cristy <urban-warrior@imagemagick.org> | Sun Jul 23 10:40:17 2017 -0400 |
tree | d2f6ac2c08605d2c99ca6aaec0c514dbc3f87ec8 | |
parent | ff3faa31166439d81b72de22daea2b6404569137 [diff] [blame] |
https://github.com/ImageMagick/ImageMagick/issues/599
diff --git a/coders/mat.c b/coders/mat.c index 6b08f76..14dde7d 100644 --- a/coders/mat.c +++ b/coders/mat.c
@@ -933,7 +933,8 @@ if (strncmp(MATLAB_HDR.identific, "MATLAB", 6)) { MATLAB_KO: - clone_info=DestroyImageInfo(clone_info); + if (clone_info != (ImageInfo *) NULL) + clone_info=DestroyImageInfo(clone_info); ThrowReaderException(CorruptImageError,"ImproperImageHeader"); }