]> granicus.if.org Git - imagemagick/commitdiff
The image should be destroyed to avoid a memory leak.
authorDirk Lemstra <dirk@git.imagemagick.org>
Sun, 11 Mar 2018 07:58:48 +0000 (08:58 +0100)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sun, 11 Mar 2018 07:58:48 +0000 (08:58 +0100)
coders/wpg.c

index 54fa6331595b627b02d47c0a09d038dc757e0623..d179f7e49c9a5486ecb5d0dc64d6a986cc14042a 100644 (file)
@@ -864,7 +864,7 @@ static Image *ExtractPostscript(Image *image,const ImageInfo *image_info,
  FINISH:
   DestroyImageInfo(clone_info);
   if (status == MagickFalse)
-    return((Image *) NULL);
+    return(DestroyImageList(image));
   return(image);
 }
 \f