File ImageMagick-CVE-2019-13137.patch of Package ImageMagick.28258

diff --git a/coders/ps.c b/coders/ps.c
index d599ab7047..cf5fc70580 100644
--- a/coders/ps.c
+++ b/coders/ps.c
@@ -744,6 +744,7 @@ static Image *ReadPSImage(const ImageInfo *image_info,ExceptionInfo *exception)
         {
           (void) ThrowMagickException(exception,GetMagickModule(),OptionError,
             "InvalidGeometry","`%s'",option);
+          page_geometry=DestroyString(page_geometry);
           image=DestroyImage(image);
           return((Image *) NULL);
         }

openSUSE Build Service is sponsored by