diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2023-02-06 23:07:52 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-02-06 23:34:40 (GMT) |
commit | 1fdd31cf52a242c3b73b4093a68a30123c5c7549 (patch) | |
tree | 63b04faafec25668a818e266e068833b117d54d1 /t/t5522-pull-symlink.sh | |
parent | fb2ebe72a37423e7c375d933d3c277b8cc81efba (diff) | |
download | git-1fdd31cf52a242c3b73b4093a68a30123c5c7549.zip git-1fdd31cf52a242c3b73b4093a68a30123c5c7549.tar.gz git-1fdd31cf52a242c3b73b4093a68a30123c5c7549.tar.bz2 |
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/t5522-pull-symlink.sh')
-rwxr-xr-x | t/t5522-pull-symlink.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5522-pull-symlink.sh b/t/t5522-pull-symlink.sh index bcff460..394bc60 100755 --- a/t/t5522-pull-symlink.sh +++ b/t/t5522-pull-symlink.sh @@ -2,6 +2,7 @@ test_description='pulling from symlinked subdir' +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh # The scenario we are building: |