Commit f3ff3afee for imagemagick.org
commit f3ff3afee942a19e3041568bfa740d48213a3dec
Author: Cristy <urban-warrior@imagemagick.org>
Date: Thu Jun 4 21:29:36 2026 -0400
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-6vxp-gfwf-hcr9
diff --git a/coders/tiff.c b/coders/tiff.c
index e2e655fbe..c35110fbd 100644
--- a/coders/tiff.c
+++ b/coders/tiff.c
@@ -2714,6 +2714,7 @@ static MagickBooleanType WriteGROUP4Image(const ImageInfo *image_info,
file=fdopen(unique_file,"wb");
if ((unique_file == -1) || (file == (FILE *) NULL))
{
+ huffman_image=DestroyImage(huffman_image);
ThrowFileException(exception,FileOpenError,"UnableToCreateTemporaryFile",
filename);
return(MagickFalse);