Skip to content

Commit

Permalink
possible memory leak @ #5131
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed May 7, 2022
1 parent d4d5ca2 commit 8ed6d1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions coders/ps.c
Expand Up @@ -701,6 +701,7 @@ static Image *ReadPSImage(const ImageInfo *image_info,ExceptionInfo *exception)
(void) ThrowMagickException(exception,GetMagickModule(),OptionError,
"InvalidGeometry","`%s'",option);
page_geometry=DestroyString(page_geometry);
CleanupPSInfo(&info);
image=DestroyImage(image);
return((Image *) NULL);
}
Expand Down

0 comments on commit 8ed6d1d

Please sign in to comment.