Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/598
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jul 23, 2017
1 parent a4779cf commit e5c063a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coders/mat.c
Expand Up @@ -937,7 +937,8 @@ static Image *ReadMATImage(const ImageInfo *image_info,ExceptionInfo *exception)
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");
}

Expand Down

0 comments on commit e5c063a

Please sign in to comment.