summaryrefslogtreecommitdiff
path: root/builtin/notes.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-14 08:52:17 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-14 10:07:58 -0700
commit1ca57bea4a8a4637c4e7d2a2f46677acc4795d81 (patch)
treec0eb8403992b218344a0a36a30c58b5ce3ffeb66 /builtin/notes.c
parent648abbe22d55a6004bf6dafa7c0ed209572c9fe9 (diff)
builtin/rebase: fix leaking `commit.gpgsign` value
In `get_replay_opts()`, we override the `gpg_sign` field that already got populated by `sequencer_init_config()` in case the user has "commit.gpgsign" set in their config. This creates a memory leak because we overwrite the previously assigned value, which may have already pointed to an allocated string. Let's plug the memory leak by freeing the value before we overwrite it. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/notes.c')
0 files changed, 0 insertions, 0 deletions