Skip to content

Commit

Permalink
Added missing call to DestroyString.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jun 23, 2022
1 parent 518a834 commit 5141d76
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions coders/miff.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5141d76

Please sign in to comment.