stat-cache: close file if fstat fails

personal/stbuehler/wip
Stefan Bühler 13 years ago
parent 6fcfd96b53
commit 619a2d6582
  1. 2
      src/main/stat_cache.c

@ -335,6 +335,8 @@ liHandlerResult li_stat_cache_get(liVRequest *vr, GString *path, struct stat *st
}
if (-1 == fstat(*fd, st)) {
*err = errno;
close(*fd);
*fd = -1;
return LI_HANDLER_ERROR;
}
} else {

Loading…
Cancel
Save