Skip to content

Commit

Permalink
close input file if early exit on exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Dec 4, 2021
1 parent 5beeab8 commit fd51385
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coders/exr.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ static Image *ReadEXRImage(const ImageInfo *image_info,ExceptionInfo *exception)
status=SetImageExtent(image,image->columns,image->rows);
if (status == MagickFalse)
{
(void) ImfCloseInputFile(file);
InheritException(exception,&image->exception);
return(DestroyImageList(image));
}
Expand Down

0 comments on commit fd51385

Please sign in to comment.