Skip to content

Commit 8a43abe

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/1451
1 parent 748a036 commit 8a43abe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: coders/psd.c

+2
Original file line numberDiff line numberDiff line change
@@ -2782,6 +2782,8 @@ static size_t WritePSDChannel(const PSDInfo *psd_info,
27822782
if (deflateInit(&stream,level) != Z_OK)
27832783
{
27842784
quantum_info=DestroyQuantumInfo(quantum_info);
2785+
compressed_pixels=(unsigned char *) RelinquishMagickMemory(
2786+
compressed_pixels);
27852787
return(0);
27862788
}
27872789
}

0 commit comments

Comments
 (0)