summaryrefslogtreecommitdiff
path: root/builtin/fmt-merge-msg.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-11-27 10:57:02 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-27 10:57:02 +0900
commit80a0e0fdd6b51744a7c76583874e2993df645e47 (patch)
tree3ca2a1e5a94ab89c59d7f3084c7339cd23dd312a /builtin/fmt-merge-msg.c
parentMerge branch 'ma/bisect-leakfix' into maint (diff)
parentreduce_heads: fix memory leaks (diff)
downloadtgif-80a0e0fdd6b51744a7c76583874e2993df645e47.tar.xz
Merge branch 'ma/reduce-heads-leakfix' into maint
Leak fixes. * ma/reduce-heads-leakfix: reduce_heads: fix memory leaks builtin/merge-base: free commit lists
Diffstat (limited to 'builtin/fmt-merge-msg.c')
-rw-r--r--builtin/fmt-merge-msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fmt-merge-msg.c b/builtin/fmt-merge-msg.c
index e99b5ddbf9..27a2361e91 100644
--- a/builtin/fmt-merge-msg.c
+++ b/builtin/fmt-merge-msg.c
@@ -571,7 +571,7 @@ static void find_merge_parents(struct merge_parents *result,
head_commit = lookup_commit(head);
if (head_commit)
commit_list_insert(head_commit, &parents);
- parents = reduce_heads(parents);
+ reduce_heads_replace(&parents);
while (parents) {
struct commit *cmit = pop_commit(&parents);