Commit bee248ee8 for imagemagick.org

commit bee248ee853a686a969fae9cfb1e02dd5aae245b
Author: Cristy <urban-warrior@imagemagick.org>
Date:   Fri Mar 20 21:24:56 2026 -0400

    https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-9r56-3gjq-hqf7

diff --git a/coders/meta.c b/coders/meta.c
index f2ab6fae0..9def00d1d 100644
--- a/coders/meta.c
+++ b/coders/meta.c
@@ -1333,12 +1333,17 @@ static Image *ReadMETAImage(const ImageInfo *image_info,
             }
           AttachBlob(iptc->blob,GetStringInfoDatum(profile),
             GetStringInfoLength(profile));
+          profile->datum=(unsigned char *) NULL;
+          profile->length=0;
+          profile=DestroyStringInfo(profile);
           result=jpeg_embed(image,buff,iptc);
           blob=(unsigned char *) DetachBlob(iptc->blob);
           blob=(unsigned char *) RelinquishMagickMemory(blob);
           iptc=DestroyImage(iptc);
           if (result == 0)
             {
+              blob=(unsigned char *) DetachBlob(buff->blob);
+              blob=(unsigned char *) RelinquishMagickMemory(blob);
               buff=DestroyImage(buff);
               ThrowReaderException(CoderError,"JPEGEmbeddingFailed");
             }