Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/1053
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Mar 24, 2018
1 parent b1fda8b commit 0300424
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coders/tiff.c
Expand Up @@ -3244,7 +3244,10 @@ static MagickBooleanType WriteTIFFImage(const ImageInfo *image_info,
{
status=SetQuantumFormat(image,quantum_info,FloatingPointQuantumFormat);
if (status == MagickFalse)
ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
{
quantum_info=DestroyQuantumInfo(quantum_info);
ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
}
}
if ((LocaleCompare(image_info->magick,"PTIF") == 0) &&
(GetPreviousImageInList(image) != (Image *) NULL))
Expand Down

0 comments on commit 0300424

Please sign in to comment.