From: Dirk Lemstra Date: Sat, 28 Apr 2018 12:10:29 +0000 (+0200) Subject: Fixed invalid free (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8056). X-Git-Tag: 7.0.7-29~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e773b51f1540150418c88cfb84fd99e9dcda790f;p=imagemagick Fixed invalid free (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8056). --- diff --git a/coders/heic.c b/coders/heic.c index 348b41677..525d4124f 100644 --- a/coders/heic.c +++ b/coders/heic.c @@ -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");