From 4cd61940efb573150303c73c2be4079133da042f Mon Sep 17 00:00:00 2001 From: Cristy Date: Tue, 6 Mar 2018 20:41:17 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6457 --- coders/pcd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/coders/pcd.c b/coders/pcd.c index 5707d3e44..7cebfc4d7 100644 --- a/coders/pcd.c +++ b/coders/pcd.c @@ -1120,6 +1120,8 @@ static MagickBooleanType WritePCDImage(const ImageInfo *image_info,Image *image, if (rotate_image == (Image *) NULL) return(MagickFalse); pcd_image=rotate_image; + DestroyBlob(rotate_image); + pcd_image->blob=ReferenceBlob(image->blob); } /* Open output image file. -- 2.40.0