]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=7498
authorCristy <urban-warrior@imagemagick.org>
Mon, 9 Apr 2018 23:24:11 +0000 (19:24 -0400)
committerCristy <urban-warrior@imagemagick.org>
Mon, 9 Apr 2018 23:24:11 +0000 (19:24 -0400)
coders/tga.c

index 53cfb94f3ad7422bbf4042c30964aba55f3c2d99..ef71590faffe7bca640ce33d71dbf234dbd80080 100644 (file)
@@ -301,8 +301,8 @@ static Image *ReadTGAImage(const ImageInfo *image_info,
         {
           comment[length]='\0';
           (void) SetImageProperty(image,"comment",comment,exception);
-          comment=DestroyString(comment);
         }
+      comment=DestroyString(comment);
     }
   if (tga_info.attributes & (1UL << 4))
     {