Skip to content

Commit 32d2671

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 33652fa commit 32d2671

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
@@ -622,6 +622,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
622622
die(_("Unable to write new index file"));
623623

624624
dir_clear(&dir);
625+
enable_fscache(0);
625626
UNLEAK(pathspec);
626627
return exit_status;
627628
}

0 commit comments

Comments
 (0)