Skip to content

Commit f412361

Browse files
benpeartdscho
authored andcommitted
At the end of the add command, disable and free the fscache so that we don't
leak the memory and so that we can dump the fscache statistics. Signed-off-by: Ben Peart <[email protected]>
1 parent 80e660d commit f412361

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/add.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
538538
COMMIT_LOCK | SKIP_IF_UNCHANGED))
539539
die(_("Unable to write new index file"));
540540

541+
enable_fscache(0);
541542
UNLEAK(pathspec);
542543
UNLEAK(dir);
543544
return exit_status;

0 commit comments

Comments
 (0)