]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/880
authorCristy <urban-warrior@imagemagick.org>
Fri, 24 Nov 2017 13:55:24 +0000 (08:55 -0500)
committerCristy <urban-warrior@imagemagick.org>
Fri, 24 Nov 2017 13:55:24 +0000 (08:55 -0500)
coders/xpm.c

index 76fee225ac67d249a0092c0cca00c9da4bf03b5e..023f58bc2d177ab620ec72e5a97eea7b9575bef6 100644 (file)
@@ -366,6 +366,7 @@ static Image *ReadXPMImage(const ImageInfo *image_info,ExceptionInfo *exception)
     (void *(*)(void *)) NULL);
   if (AcquireImageColormap(image,image->colors,exception) == MagickFalse)
     {
+      xpm_colors=DestroySplayTree(xpm_colors);
       xpm_buffer=DestroyString(xpm_buffer);
       ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
     }