test-tool path-utils: fix a memory leak

Fix a memory leak in "test-tool path-utils", as a result we can mark
the corresponding test as passing with SANITIZE=leak using
"TEST_PASSES_SANITIZE_LEAK=true".

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Ævar Arnfjörð Bjarmason
2022-07-01 12:37:33 +02:00
committed by Junio C Hamano
parent 330ca8501b
commit e287a5b0a4
2 changed files with 8 additions and 4 deletions

View File

@ -5,6 +5,7 @@
test_description='Test various path utilities'
TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
norm_path() {