aboutsummaryrefslogtreecommitdiffstats
path: root/t/t5812-proto-disable-http.sh
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-08-22 11:17:46 +0200
committerJunio C Hamano <gitster@pobox.com>2024-08-22 09:18:05 -0700
commita09efb74e3d3b316519a398618fb6515df4337a7 (patch)
treed20e7b549ae721719a72394788f04aae11f498fc /t/t5812-proto-disable-http.sh
parenttransport: fix leaking OID arrays in git:// transport data (diff)
downloadgit-a09efb74e3d3b316519a398618fb6515df4337a7.tar.gz
git-a09efb74e3d3b316519a398618fb6515df4337a7.zip
builtin/send-pack: fix leaking refspecs
We never free data associated with the assembled refspec in git-send-pack(1), causing a memory leak. Fix this. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5812-proto-disable-http.sh')
-rwxr-xr-xt/t5812-proto-disable-http.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t5812-proto-disable-http.sh b/t/t5812-proto-disable-http.sh
index 769c717e88..f69959c64c 100755
--- a/t/t5812-proto-disable-http.sh
+++ b/t/t5812-proto-disable-http.sh
@@ -1,6 +1,8 @@
#!/bin/sh
test_description='test disabling of git-over-http in clone/fetch'
+
+TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
. "$TEST_DIRECTORY/lib-proto-disable.sh"
. "$TEST_DIRECTORY/lib-httpd.sh"