Commit 10e3fd8a3 for imagemagick.org
commit 10e3fd8a34141af55cb1e738e041e82ec8840209
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sun Nov 22 22:05:04 2026 -0500
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-mgx5-6pwr-j4wc
diff --git a/MagickCore/constitute.c b/MagickCore/constitute.c
index 9ce54c536..1850a3c10 100644
--- a/MagickCore/constitute.c
+++ b/MagickCore/constitute.c
@@ -812,6 +812,7 @@ static Image *ReadImageInternal(const ImageInfo *image_info,
(void) LogMagickEvent(ExceptionEvent,GetMagickModule(),
"Coder (%s) generated an image despite an error (%d), "
"notify the developers",image->magick,exception->severity);
+ read_info=DestroyImageInfo(read_info);
return(DestroyImageList(image));
}
if (read_info->ping != MagickFalse)