From f362c02083d27211b913c6e44794f0ac6edaf2bd Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sun, 9 Sep 2018 21:19:57 +0500 Subject: [PATCH] coders/cut.c: remove unused code found by coverity pallete is assigned NULL in line 372 --- coders/cut.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/coders/cut.c b/coders/cut.c index 1064c02f7..2a154963d 100644 --- a/coders/cut.c +++ b/coders/cut.c @@ -415,8 +415,6 @@ static Image *ReadCUTImage(const ImageInfo *image_info,ExceptionInfo *exception) status=SetImageExtent(image,image->columns,image->rows,exception); if (status == MagickFalse) { - if (palette != NULL) - palette=DestroyImage(palette); if (clone_info != NULL) clone_info=DestroyImageInfo(clone_info); return(DestroyImageList(image)); -- 2.40.0