From: Cristy Date: Wed, 21 Feb 2018 13:44:59 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6493 X-Git-Tag: 7.0.7-24~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f1acfa71b784af567dec485c6ff1af410628e8c;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6493 --- diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 9602a4a08..c941b9e9a 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -3675,7 +3675,6 @@ static MagickBooleanType OpenPixelCache(Image *image,const MapMode mode, } if (OpenPixelCacheOnDisk(cache_info,mode) == MagickFalse) { - RelinquishMagickResource(DiskResource,cache_info->length); ThrowFileException(exception,CacheError,"UnableToOpenPixelCache", image->filename); return(MagickFalse);