diff options
| author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2023-02-07 00:07:52 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2023-02-06 15:34:40 -0800 |
| commit | 1fdd31cf52a242c3b73b4093a68a30123c5c7549 (patch) | |
| tree | 63b04faafec25668a818e266e068833b117d54d1 /t/t5406-remote-rejects.sh | |
| parent | fb2ebe72a37423e7c375d933d3c277b8cc81efba (diff) | |
| download | git-1fdd31cf52a242c3b73b4093a68a30123c5c7549.tar.gz | |
receive-pack: release the linked "struct command *" list
Fix a memory leak that's been with us since this code was introduced
in [1]. Later in [2] we started using FLEX_ALLOC_MEM() to allocate the
"struct command *".
1. 575f497456e (Add first cut at "git-receive-pack", 2005-06-29)
2. eb1af2df0b1 (git-receive-pack: start parsing ref update commands,
2005-06-29)
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5406-remote-rejects.sh')
| -rwxr-xr-x | t/t5406-remote-rejects.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5406-remote-rejects.sh b/t/t5406-remote-rejects.sh index dcbeb42082..d6a9946633 100755 --- a/t/t5406-remote-rejects.sh +++ b/t/t5406-remote-rejects.sh @@ -2,6 +2,7 @@ test_description='remote push rejects are reported by client' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'setup' ' |
