aboutsummaryrefslogtreecommitdiffstats
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-02-25 15:47:36 -0800
committerJunio C Hamano <gitster@pobox.com>2022-02-25 15:47:36 -0800
commit362f869ff2dbc389234ecd8c4b996a9e507c39d7 (patch)
tree077586c50787e0a4469311aa15e7059f731825c5 /builtin
parent0a01df08c03fe707e22795de7bd1d763ed02e9e1 (diff)
parent6ee36364eb32287f071878a91d3bbcd86313754a (diff)
downloadgit-362f869ff2dbc389234ecd8c4b996a9e507c39d7.tar.gz
Merge branch 'ab/diff-free-more'
Leakfixes. * ab/diff-free-more: diff.[ch]: have diff_free() free options->parseopts diff.[ch]: have diff_free() call clear_pathspec(opts.pathspec)
Diffstat (limited to 'builtin')
-rw-r--r--builtin/reset.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/builtin/reset.c b/builtin/reset.c
index 75b8d86481..6e65e90c5d 100644
--- a/builtin/reset.c
+++ b/builtin/reset.c
@@ -280,7 +280,6 @@ static int read_from_tree(const struct pathspec *pathspec,
return 1;
diffcore_std(&opt);
diff_flush(&opt);
- clear_pathspec(&opt.pathspec);
return 0;
}