]> git.ipfire.org Git - thirdparty/git.git/commit
test-tool {dump,scrap}-cache-tree: fix memory leaks
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 1 Jul 2022 10:37:34 +0000 (12:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Jul 2022 20:38:49 +0000 (13:38 -0700)
commit9afa46d4a677c806f414f363daee07a9e6a44f0b
tree75ae5319e47c71b52d231c1844d56a0c5443af77
parente287a5b0a434e05de39ede507e5b3fc24f67cbb0
test-tool {dump,scrap}-cache-tree: fix memory leaks

Fix memory leaks in two test-tools used by t0090-cache-tree.sh. As a
result we can mark the 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>
t/helper/test-dump-cache-tree.c
t/helper/test-scrap-cache-tree.c
t/t0090-cache-tree.sh