Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/441
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Apr 26, 2017
1 parent 528b899 commit babb3b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/exr.c
Expand Up @@ -207,6 +207,7 @@ static Image *ReadEXRImage(const ImageInfo *image_info,ExceptionInfo *exception)
if (LocaleCompare(image_info->filename,read_info->filename) != 0)
(void) RelinquishUniqueFileResource(read_info->filename);
read_info=DestroyImageInfo(read_info);
image=DestroyImageList(image);
return((Image *) NULL);
}
hdr_info=ImfInputHeader(file);
Expand Down Expand Up @@ -247,6 +248,7 @@ static Image *ReadEXRImage(const ImageInfo *image_info,ExceptionInfo *exception)
if (LocaleCompare(image_info->filename,read_info->filename) != 0)
(void) RelinquishUniqueFileResource(read_info->filename);
read_info=DestroyImageInfo(read_info);
image=DestroyImageList(image);
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
}
}
Expand Down

0 comments on commit babb3b6

Please sign in to comment.