Commit e20d7a4cf for imagemagick.org
commit e20d7a4cff754c3ad029e53613d5b494b7b32054
Author: Cristy <urban-warrior@imagemagick.org>
Date: Sun Oct 18 10:29:26 2026 -0400
https://github.com/ImageMagick/ImageMagick/issues/9038
diff --git a/MagickCore/montage.c b/MagickCore/montage.c
index 4a8cea627..1b444eb2d 100644
--- a/MagickCore/montage.c
+++ b/MagickCore/montage.c
@@ -112,7 +112,7 @@ MagickExport MontageInfo *CloneMontageInfo(const ImageInfo *image_info,
if (montage_info == (MontageInfo *) NULL)
return(clone_info);
if (montage_info->geometry != (char *) NULL)
- clone_info->geometry=AcquireString(montage_info->geometry);
+ (void) CloneString(&clone_info->geometry,montage_info->geometry);
if (montage_info->tile != (char *) NULL)
clone_info->tile=AcquireString(montage_info->tile);
if (montage_info->title != (char *) NULL)
@@ -122,7 +122,7 @@ MagickExport MontageInfo *CloneMontageInfo(const ImageInfo *image_info,
if (montage_info->texture != (char *) NULL)
clone_info->texture=AcquireString(montage_info->texture);
if (montage_info->font != (char *) NULL)
- clone_info->font=AcquireString(montage_info->font);
+ (void) CloneString(&clone_info->font,montage_info->font);
clone_info->pointsize=montage_info->pointsize;
clone_info->border_width=montage_info->border_width;
clone_info->shadow=montage_info->shadow;