From fd4d26294b38884e8cf43d733bc54aad8125d132 Mon Sep 17 00:00:00 2001 From: Cristy Date: Wed, 14 Feb 2024 19:59:00 -0500 Subject: [PATCH] free image info struct --- coders/dng.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/coders/dng.c b/coders/dng.c index 73a3e003e..dd1cf0c82 100644 --- a/coders/dng.c +++ b/coders/dng.c @@ -243,7 +243,10 @@ static Image *InvokeDNGDelegate(const ImageInfo *image_info,Image *image, status=InvokeDelegate(read_info,image,"dng:decode",(char *) NULL,exception); image=DestroyImage(image); if (status == MagickFalse) - return(image); + { + read_info=DestroyImageInfo(read_info); + return(image); + } *read_info->magick='\0'; (void) FormatLocaleString(read_info->filename,MagickPathExtent,"%s.tif", read_info->unique);