From add7a585d685e01a3b2f445231b81066e1fd4e74 Mon Sep 17 00:00:00 2001 From: Anthony Shaw Date: Sat, 18 Apr 2026 06:34:36 +1000 Subject: [PATCH] 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 Signed-off-by: Johannes Schindelin --- builtin/add.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/add.c b/builtin/add.c index 633ec92d4e..fe65d11fbd 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -609,6 +609,6 @@ finish: free(ps_matched); dir_clear(&dir); clear_pathspec(&pathspec); - enable_fscache(0); + disable_fscache(); return exit_status; }