diff options
| author | Junio C Hamano <gitster@pobox.com> | 2023-02-15 17:11:52 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-02-15 17:11:52 -0800 |
| commit | a232de58f26a8a890e99258a137581802b308a0c (patch) | |
| tree | ce27901dccc0d36922c4adfabca81fb5cb34e063 /commit.c | |
| parent | Merge branch 'ds/bundle-uri-5' (diff) | |
| parent | commit.c: free() revs.commit in get_fork_point() (diff) | |
| download | git-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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; |
