Skip to content

Commit

Permalink
At the end of the add command, disable and free the fscache so that w…
Browse files Browse the repository at this point in the history
…e don't

leak the memory and so that we can dump the fscache statistics.

Signed-off-by: Ben Peart <benpeart@microsoft.com>
  • Loading branch information
benpeart authored and dscho committed Nov 21, 2018
1 parent d3cda73 commit 4186785
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builtin/add.c
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ int cmd_add(int argc, const char **argv, const char *prefix)
COMMIT_LOCK | SKIP_IF_UNCHANGED))
die(_("Unable to write new index file"));

enable_fscache(0);
UNLEAK(pathspec);
UNLEAK(dir);
return exit_status;
Expand Down

0 comments on commit 4186785

Please sign in to comment.