aboutsummaryrefslogtreecommitdiffstats
path: root/commit-reach.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-01 12:38:16 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-01 08:47:35 -0700
commit7935a026130f7dd430539685de0742dabb8e6047 (patch)
treefb4ece83f6931f040bf68b2be1e07c39e964e492 /commit-reach.c
parentbuiltin/replay: plug leaking `advance_name` variable (diff)
downloadgit-7935a026130f7dd430539685de0742dabb8e6047.tar.gz
git-7935a026130f7dd430539685de0742dabb8e6047.zip
builtin/log: fix leaking branch name when creating cover letters
When calling `make_cover_letter()` without a branch name, we try to derive the branch name by calling `find_branch_name()`. But while this function returns an allocated string, we never free the result and thus have a memory leak. Fix this. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-reach.c')
0 files changed, 0 insertions, 0 deletions