Skip to content
Permalink
Browse files

Fixed incorrect call to DestroyImage reported in #491.

  • Loading branch information...
dlemstra committed May 15, 2017
1 parent 72f5c86 commit 01843366d6a7b96e22ad7bb67f3df7d9fd4d5d74
Showing with 1 addition and 1 deletion.
  1. +1 −1 magick/image.c
@@ -833,7 +833,7 @@ MagickExport Image *CloneImage(const Image *image,const size_t columns,
sizeof(*clone_image->colormap));
if (clone_image->colormap == (PixelPacket *) NULL)
{
clone_image=DestroyImage(clone_image);
image=(Image *) RelinquishMagickMemory(image);
ThrowImageException(ResourceLimitError,"MemoryAllocationFailed");
}
(void) CopyMagickMemory(clone_image->colormap,image->colormap,length*

0 comments on commit 0184336

Please sign in to comment.
You can’t perform that action at this time.