summaryrefslogtreecommitdiffstats
path: root/builtin/reset.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-02-26 00:47:36 +0100
committerJunio C Hamano <gitster@pobox.com>2022-02-26 00:47:36 +0100
commit362f869ff2dbc389234ecd8c4b996a9e507c39d7 (patch)
tree077586c50787e0a4469311aa15e7059f731825c5 /builtin/reset.c
parentMerge branch 'ab/date-mode-release' (diff)
parentdiff.[ch]: have diff_free() free options->parseopts (diff)
downloadgit-362f869ff2dbc389234ecd8c4b996a9e507c39d7.tar.xz
git-362f869ff2dbc389234ecd8c4b996a9e507c39d7.zip
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/reset.c')
-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;
}