summaryrefslogtreecommitdiff
path: root/t/t5522-pull-symlink.sh
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2023-02-06 23:07:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2023-02-06 23:34:40 (GMT)
commit1fdd31cf52a242c3b73b4093a68a30123c5c7549 (patch)
tree63b04faafec25668a818e266e068833b117d54d1 /t/t5522-pull-symlink.sh
parentfb2ebe72a37423e7c375d933d3c277b8cc81efba (diff)
downloadgit-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-xt/t5522-pull-symlink.sh1
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: