Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fixed memory leak.
  • Loading branch information
dlemstra committed Oct 19, 2016
1 parent a308dc3 commit 4ec444f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/psd.c
Expand Up @@ -1719,6 +1719,8 @@ ModuleExport MagickBooleanType ReadPSDLayers(Image *image,
if (image->debug != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" layer data is empty");
if (layer_info[i].info != (StringInfo *) NULL)
layer_info[i].info=DestroyStringInfo(layer_info[i].info);
continue;
}

Expand Down

0 comments on commit 4ec444f

Please sign in to comment.