X-Git-Url: https://granicus.if.org/sourcecode?a=blobdiff_plain;f=MagickCore%2Fresource.c;h=7b00c1b741d9ddf41b60c5aff77973f709a7f1ac;hb=eb2fa6132bc93a2b75a07d6bc915d89b83e83d0d;hp=cf2545eceb5b0fa4a152d1e0597bfa8de83c7f23;hpb=46bcb8a86801d3d9c3f89ec1c01fa8a98da05645;p=imagemagick diff --git a/MagickCore/resource.c b/MagickCore/resource.c index cf2545ece..7b00c1b74 100644 --- a/MagickCore/resource.c +++ b/MagickCore/resource.c @@ -1009,12 +1009,9 @@ MagickExport MagickBooleanType RelinquishUniqueFileResource(const char *path) if (temporary_resources != (SplayTreeInfo *) NULL) status=DeleteNodeFromSplayTree(temporary_resources,(const void *) path); UnlockSemaphoreInfo(resource_semaphore); - if (status != MagickFalse) - { - (void) CopyMagickString(cache_path,path,MagickPathExtent); - AppendImageFormat("cache",cache_path); - (void) ShredFile(cache_path); - } + (void) CopyMagickString(cache_path,path,MagickPathExtent); + AppendImageFormat("cache",cache_path); + (void) ShredFile(cache_path); if (status == MagickFalse) status=ShredFile(path); return(status);