summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2018-05-30 21:51:29 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-05-30 21:51:29 +0900
commite47dbece39712567a36a096010c5c1223119f7e3 (patch)
treeaced74e797a0c37931e367574bdd60cbfb63e0f4 /builtin
parentMerge branch 'bc/hash-independent-tests' (diff)
parentunpack_trees_options: free messages when done (diff)
downloadtgif-e47dbece39712567a36a096010c5c1223119f7e3.tar.xz
Merge branch 'ma/unpack-trees-free-msgs'
Leak plugging. * ma/unpack-trees-free-msgs: unpack_trees_options: free messages when done argv-array: return the pushed string from argv_push*() merge-recursive: provide pair of `unpack_trees_{start,finish}()` merge: setup `opts` later in `checkout_fast_forward()`
Diffstat (limited to 'builtin')
-rw-r--r--builtin/checkout.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/checkout.c b/builtin/checkout.c
index 2b3b768eff..2e1d2376d2 100644
--- a/builtin/checkout.c
+++ b/builtin/checkout.c
@@ -527,6 +527,7 @@ static int merge_working_tree(const struct checkout_opts *opts,
init_tree_desc(&trees[1], tree->buffer, tree->size);
ret = unpack_trees(2, trees, &topts);
+ clear_unpack_trees_porcelain(&topts);
if (ret == -1) {
/*
* Unpack couldn't do a trivial merge; either