From 5141d76e2044edfdb3ff117253e8d10461571d82 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Thu, 23 Jun 2022 19:48:05 +0200 Subject: [PATCH] Added missing call to DestroyString. --- coders/miff.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/coders/miff.c b/coders/miff.c index b70859431f..4c6f11198d 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -832,8 +832,11 @@ static Image *ReadMIFFImage(const ImageInfo *image_info, if (LocaleCompare(keyword,"id") == 0) { if (*id != '\0') - ThrowMIFFException(CorruptImageError, - "ImproperImageHeader"); + { + options=DestroyString(options); + ThrowMIFFException(CorruptImageError, + "ImproperImageHeader"); + } (void) CopyMagickString(id,options,MaxTextExtent); break; }