diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-06-11 11:20:47 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-06-11 13:15:07 -0700 |
commit | 1e5c1601f98afba0772c4548ec6befe6e97761e7 (patch) | |
tree | eeb9e7d283d03be3f898e66f521e165201382a77 /commit.c | |
parent | 63c9bd372e388f5fed77be56771d5ad972f37f8e (diff) |
sequencer: fix leaking string buffer in `commit_staged_changes()`
We're leaking the `rev` string buffer in various call paths. Refactor
the function to have a common exit path so that we can release its
memory reliably.
This fixes a subset of tests failing with the memory sanitizer in t3404.
But as there are more failures, we cannot yet mark the whole test suite
as passing.
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