diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-08-01 12:38:16 +0200 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-08-01 08:47:35 -0700 |
| commit | 7935a026130f7dd430539685de0742dabb8e6047 (patch) | |
| tree | fb4ece83f6931f040bf68b2be1e07c39e964e492 /commit-reach.c | |
| parent | builtin/replay: plug leaking `advance_name` variable (diff) | |
| download | git-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
