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 <benpeart@microsoft.com>
This commit is contained in:
Ben Peart
2018-11-05 08:38:32 -05:00
committed by Johannes Schindelin
parent 25eadf5fe5
commit 036133dd29

View File

@@ -541,6 +541,7 @@ finish:
COMMIT_LOCK | SKIP_IF_UNCHANGED))
die(_("Unable to write new index file"));
enable_fscache(0);
UNLEAK(pathspec);
UNLEAK(dir);
return exit_status;