aboutsummaryrefslogtreecommitdiffstats
path: root/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-02-15 17:11:52 -0800
committerJunio C Hamano <gitster@pobox.com>2023-02-15 17:11:52 -0800
commita232de58f26a8a890e99258a137581802b308a0c (patch)
treece27901dccc0d36922c4adfabca81fb5cb34e063 /commit.c
parentMerge branch 'ds/bundle-uri-5' (diff)
parentcommit.c: free() revs.commit in get_fork_point() (diff)
downloadgit-a232de58f26a8a890e99258a137581802b308a0c.tar.gz
git-a232de58f26a8a890e99258a137581802b308a0c.zip
Merge branch 'ab/sequencer-unleak'
Plug leaks in sequencer subsystem and its users. * ab/sequencer-unleak: commit.c: free() revs.commit in get_fork_point() builtin/rebase.c: free() "options.strategy_opts" sequencer.c: always free() the "msgbuf" in do_pick_commit() builtin/rebase.c: fix "options.onto_name" leak builtin/revert.c: move free-ing of "revs" to replay_opts_release() sequencer API users: fix get_replay_opts() leaks sequencer.c: split up sequencer_remove_state() rebase: use "cleanup" pattern in do_interactive_rebase()
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.c b/commit.c
index 14538a811a..e433c33bb0 100644
--- a/commit.c
+++ b/commit.c
@@ -1033,6 +1033,7 @@ struct commit *get_fork_point(const char *refname, struct commit *commit)
ret = bases->item;
cleanup_return:
+ free(revs.commit);
free_commit_list(bases);
free(full_refname);
return ret;