diff options
author | Patrick Steinhardt <ps@pks.im> | 2024-11-05 07:17:06 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-11-05 07:37:53 +0100 |
commit | 3b373150c8ea52ed64db0e7b0bd5a9b483e99a8e (patch) | |
tree | c25c77b5ca13c2f674ce4e88a2a98d202204d01c /t | |
parent | pretty: clear signature check (diff) | |
download | git-3b373150c8ea52ed64db0e7b0bd5a9b483e99a8e.tar.xz git-3b373150c8ea52ed64db0e7b0bd5a9b483e99a8e.zip |
upload-pack: fix leaking URI protocols
We don't clear `struct upload_pack::uri_protocols`, which causes 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')
-rwxr-xr-x | t/t5702-protocol-v2.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t5702-protocol-v2.sh b/t/t5702-protocol-v2.sh index d3df81e785..e4ce059236 100755 --- a/t/t5702-protocol-v2.sh +++ b/t/t5702-protocol-v2.sh @@ -7,6 +7,7 @@ TEST_NO_CREATE_REPO=1 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh # Test protocol v2 with 'git://' transport |