]> granicus.if.org Git - imagemagick/blobdiff - MagickCore/resource.c
Handle short months in png_write_iTIME()
[imagemagick] / MagickCore / resource.c
index cf2545eceb5b0fa4a152d1e0597bfa8de83c7f23..7b00c1b741d9ddf41b60c5aff77973f709a7f1ac 100644 (file)
@@ -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);