From 8a43abefb38c5e29138e1c9c515b313363541c06 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 20 Jan 2019 11:04:31 -0500 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/issues/1451 --- coders/psd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coders/psd.c b/coders/psd.c index 95dd4e6bb..7bbd3af4e 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -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); } } -- 2.40.0