From a61d721e3633724692590455a01fe76eff13b229 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sat, 12 Oct 2024 12:12:15 +0200 Subject: [PATCH] Added missing calls to CloseBob. --- coders/exr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coders/exr.c b/coders/exr.c index 94c49886f..7e4b6768f 100644 --- a/coders/exr.c +++ b/coders/exr.c @@ -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)); } @@ -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"); }