Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/1451
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jan 20, 2019
1 parent 748a036 commit 8a43abe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/psd.c
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 8a43abe

Please sign in to comment.