Skip to content

Commit b46600f

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 224e2bf commit b46600f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/add.c

+1
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
537537
COMMIT_LOCK | SKIP_IF_UNCHANGED))
538538
die(_("Unable to write new index file"));
539539

540+
enable_fscache(0);
540541
UNLEAK(pathspec);
541542
UNLEAK(dir);
542543
return exit_status;

0 commit comments

Comments
 (0)