Skip to content

Commit

Permalink
Added missing calls to CloseBob.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Oct 12, 2024
1 parent b3d5d4a commit a61d721
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/exr.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ static Image *ReadEXRImage(const ImageInfo *image_info,ExceptionInfo *exception)
if (status == MagickFalse)
{
(void) ImfCloseInputFile(file);
(void) CloseBlob(image);
InheritException(exception,&image->exception);
return(DestroyImageList(image));
}
Expand All @@ -233,6 +234,7 @@ static Image *ReadEXRImage(const ImageInfo *image_info,ExceptionInfo *exception)
if (scanline == (ImfRgba *) NULL)
{
(void) ImfCloseInputFile(file);
(void) CloseBlob(image);
image=DestroyImageList(image);
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
}
Expand Down

0 comments on commit a61d721

Please sign in to comment.