mirror of
https://github.com/git-for-windows/git.git
synced 2026-06-14 15:01:15 -05:00
fixup! fscache: fscache takes an initial size
Fix a copy-paste bug at the end of `cmd_add()`: the cleanup site called `enable_fscache(0)` again instead of `disable_fscache()`, leaking the refcount. Harmless in a one-shot process today, but it confuses the matching enable/disable contract that callers and reviewers expect. Signed-off-by: Anthony Shaw <anthonyshaw@microsoft.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
committed by
Johannes Schindelin
parent
0a32e7b0ea
commit
add7a585d6
@@ -609,6 +609,6 @@ finish:
|
||||
free(ps_matched);
|
||||
dir_clear(&dir);
|
||||
clear_pathspec(&pathspec);
|
||||
enable_fscache(0);
|
||||
disable_fscache();
|
||||
return exit_status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user