Commit 310e325e6 for imagemagick.org

commit 310e325e65f5171f35ec6305c9c21ec253d80852
Author: Cristy <urban-warrior@imagemagick.org>
Date:   Sun May 31 14:08:48 2026 -0400

    https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-j989-f892-2335

diff --git a/MagickWand/wandcli-private.h b/MagickWand/wandcli-private.h
index 56b5da756..2d93f9f1e 100644
--- a/MagickWand/wandcli-private.h
+++ b/MagickWand/wandcli-private.h
@@ -31,6 +31,7 @@ extern "C" {
     char *message = GetExceptionMessage(errno); \
     (void) CLIThrowException(cli_wand,GetMagickModule(),severity,tag, \
       "'%s' '%s'",option, arg == (char *) NULL ? message : arg); \
+    message=DestroyString(message); \
   }

 #define CLIWandWarnReplaced(message) \