]> granicus.if.org Git - imagemagick/commitdiff
https://github.com/ImageMagick/ImageMagick/issues/1452
authorCristy <mikayla-grace@urban-warrior.org>
Sun, 20 Jan 2019 16:01:24 +0000 (11:01 -0500)
committerCristy <mikayla-grace@urban-warrior.org>
Sun, 20 Jan 2019 16:01:24 +0000 (11:01 -0500)
coders/sixel.c

index a8a658f352ceaa65f65fdf01b2591769a2e5339c..ae32db87490be730748dbdd31d96eb5733d13da6 100644 (file)
@@ -1057,6 +1057,7 @@ static Image *ReadSIXELImage(const ImageInfo *image_info,ExceptionInfo *exceptio
   if (sixel_decode(image,(unsigned char *) sixel_buffer,&sixel_pixels,&image->columns,&image->rows,&sixel_palette,&image->colors,exception) == MagickFalse)
     {
       sixel_buffer=(char *) RelinquishMagickMemory(sixel_buffer);
+      sixel_pixels=(unsigned char *) RelinquishMagickMemory(sixel_pixels);
       ThrowReaderException(CorruptImageError,"CorruptImage");
     }
   sixel_buffer=(char *) RelinquishMagickMemory(sixel_buffer);