Skip to content
Permalink
Browse files

#598

  • Loading branch information...
Cristy
Cristy committed Jul 23, 2017
1 parent a4779cf commit e5c063a1007506ba69e97a35effcdef944421c89
Showing with 2 additions and 1 deletion.
  1. +2 −1 coders/mat.c
@@ -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");
}

0 comments on commit e5c063a

Please sign in to comment.
You can’t perform that action at this time.