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

index 95dd4e6bb2e5a042aee8abc999e675b41a02331f..7bbd3af4ea75f822ffcd5e61f2b0060ab6dc4d2b 100644 (file)
@@ -2782,6 +2782,8 @@ static size_t WritePSDChannel(const PSDInfo *psd_info,
       if (deflateInit(&stream,level) != Z_OK)
         {
           quantum_info=DestroyQuantumInfo(quantum_info);
+          compressed_pixels=(unsigned char *) RelinquishMagickMemory(
+            compressed_pixels);
           return(0);
         }
     }