Index: src/stat_cache.c =================================================================== --- src/stat_cache.c (revision 1962) +++ src/stat_cache.c (working copy) @@ -372,6 +372,7 @@ } if (-1 == fstat(fd, &st)) { + close(fd); return HANDLER_ERROR; }