mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-04 03:14:41 +00:00
sortedcache: plug leaked file descriptor
This commit is contained in:
parent
1d683c1d2e
commit
24b2182c5a
@ -216,6 +216,7 @@ int git_sortedcache_lockandload(git_sortedcache *sc, git_buf *buf)
|
||||
if (p_fstat(fd, &st) < 0) {
|
||||
giterr_set(GITERR_OS, "failed to stat file");
|
||||
error = -1;
|
||||
(void)p_close(fd);
|
||||
goto unlock;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user