From: Dirk Lemstra Date: Thu, 27 Apr 2017 08:49:38 +0000 (+0200) Subject: Remove unnecessary check. X-Git-Tag: 7.0.5-6~42 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5138bf37bfd6266adfa268623bace71c26ca3dd9;p=imagemagick Remove unnecessary check. --- diff --git a/coders/png.c b/coders/png.c index f623fc2f2..2d2ae81d5 100644 --- a/coders/png.c +++ b/coders/png.c @@ -5547,8 +5547,7 @@ static Image *ReadMNGImage(const ImageInfo *image_info, { if (length != 28) { - if (chunk) - chunk=(unsigned char *) RelinquishMagickMemory(chunk); + chunk=(unsigned char *) RelinquishMagickMemory(chunk); ThrowReaderException(CorruptImageError,"CorruptImage"); }