summaryrefslogtreecommitdiffstats
path: root/t/t5561-http-backend.sh
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2023-02-07 00:07:52 +0100
committerJunio C Hamano <gitster@pobox.com>2023-02-07 00:34:40 +0100
commit1fdd31cf52a242c3b73b4093a68a30123c5c7549 (patch)
tree63b04faafec25668a818e266e068833b117d54d1 /t/t5561-http-backend.sh
parentgrep API: plug memory leaks by freeing "header_list" (diff)
downloadgit-1fdd31cf52a242c3b73b4093a68a30123c5c7549.tar.xz
git-1fdd31cf52a242c3b73b4093a68a30123c5c7549.zip
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/t5561-http-backend.sh')
-rwxr-xr-xt/t5561-http-backend.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5561-http-backend.sh b/t/t5561-http-backend.sh
index 9c57d84315..e1d3b8caed 100755
--- a/t/t5561-http-backend.sh
+++ b/t/t5561-http-backend.sh
@@ -4,6 +4,7 @@ test_description='test git-http-backend'
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
+TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
. "$TEST_DIRECTORY"/lib-httpd.sh