aboutsummaryrefslogtreecommitdiffstats
path: root/commit.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-09-26 13:47:02 +0200
committerJunio C Hamano <gitster@pobox.com>2024-09-27 08:25:37 -0700
commitb6c3f8e12c0a521450923ddbcf7a19a81aa3c4e7 (patch)
treed91bfec01734dda3b5ca03d861678d9cd043e043 /commit.c
parentbuiltin/maintenance: fix leaking config string (diff)
downloadgit-b6c3f8e12c0a521450923ddbcf7a19a81aa3c4e7.tar.gz
git-b6c3f8e12c0a521450923ddbcf7a19a81aa3c4e7.zip
builtin/maintenance: fix leak in `get_schedule_cmd()`
The `get_schedule_cmd()` function allows us to override the schedule command with a specific test command such that we can verify the underlying logic in a platform-independent way. Its memory management is somewhat wild though, because it basically gives up and assigns an allocated string to the string constant output pointer. While this part is marked with `UNLEAK()` to mask this, we also leak the local string lists. Rework the function such that it has a separate out parameter. If set, we will assign it the final allocated command. Plug the other memory leaks and create a common exit path. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
/td>-0/+2 2008-07-24checkout: mention '--' in the docsSZEDER Gábor1-1/+1 2008-07-24git-checkout: improve error messages, detect ambiguities.Pierre Habouzit2-17/+115 2008-07-24update test case to protect am --skip behaviourOlivier Marin1-0/+2 2008-07-24Teach fsck and prune about the new location of temporary objectsBrandon Casey2-17/+28 2008-07-23Make non-static functions, that may be static, staticStephan Beyer4-4/+4 2008-07-23ignore non-existent refs in dwim_log()Junio C Hamano1-1/+1 2008-07-23git-completion.bash: provide completion for 'show-branch'Thomas Rast1-1/+17 2008-07-23bash completion: Add long options for 'git rm'Lee Marlow1-0/+15 2008-07-23svnimport: newer libsvn wants us to ask for the root with "", not "/"P. Christeas1-1/+1 2008-07-23Documentation/git-filter-branch: teach "rm" instead of "update-index --remove"Petr Baudis1-1/+1 2008-07-23git daemon: avoid waking up too oftenJohannes Schindelin1-14/+11 2008-07-23builtin-commit: Two trivial style-cleanupsJohannes Schindelin1-4/+3 2008-07-23Documentation: clarify diff --ccJunio C Hamano2-8/+8 2008-07-23am --abort: Add to bash-completion and mention in git-rerere documentationStephan Beyer2-2/+2 2008-07-23git-filter-branch.sh: Allow running in bare repositoriesPetr Baudis2-14/+26 2008-07-23builtin-branch.c: optimize --merged and --no-mergedJunio C Hamano1-21/+38 2008-07-23builtin-branch.c: remove unused code in append_ref() callback functionJunio C Hamano1-7/+3 2008-07-23stash save: fix parameter handlingJunio C Hamano1-2/+2 2008-07-23git-am: Add colon before the subject that is printed out as being appliedStephan Beyer2-2/+2 2008-07-23git-checkout: fix command line parsing.Pierre Habouzit1-1/+2 2008-07-23rebase -i: When an 'edit' stops, mention the commitJohannes Sixt1-1/+1 2008-07-23sort_in_topological_order(): avoid setting a commit flagJohannes Schindelin3-10/+8