]> granicus.if.org Git - imagemagick/commitdiff
Fixed invalid free (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8056).
authorDirk Lemstra <dirk@git.imagemagick.org>
Sat, 28 Apr 2018 12:10:29 +0000 (14:10 +0200)
committerDirk Lemstra <dirk@git.imagemagick.org>
Sat, 28 Apr 2018 12:10:29 +0000 (14:10 +0200)
coders/heic.c

index 348b41677ccfb28627217170470b7b4affd6293a..525d4124f3f0e7b0ff63c9562491b681f382ef35 100644 (file)
@@ -262,7 +262,6 @@ static Image *ReadHEICImage(const ImageInfo *image_info,
     heif_chroma_420,NULL);
   if (error.code != 0)
     {
-      heif_image_release(heif_image);
       heif_image_handle_release(image_handle);
       heif_context_free(heif_context);
       ThrowReaderException(DelegateError,"UnableToDecodeImageFile");