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 519e005 commit 47e8e6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coders/psd.c
Expand Up @@ -1739,6 +1739,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 47e8e6c

Please sign in to comment.