From 54c602f26d607ad4db812f5dab410321eae9a996 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 22 Oct 2016 11:31:02 -0400 Subject: [PATCH] Eliminate small memory leak --- MagickWand/montage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MagickWand/montage.c b/MagickWand/montage.c index 570195a56..c911a50fd 100644 --- a/MagickWand/montage.c +++ b/MagickWand/montage.c @@ -265,6 +265,8 @@ WandExport MagickBooleanType MontageImageCommand(ImageInfo *image_info, { #define DestroyMontage() \ { \ + if (montage_info != (MontageInfo *) NULL) \ + montage_info=DestroyMontageInfo(montage_info); \ if (montage_image != (Image *) NULL) \ montage_image=DestroyImageList(montage_image); \ DestroyImageStack(); \ -- 2.40.0