]> git.ipfire.org Git - thirdparty/git.git/commit
test-tool bloom: fix memory leaks
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 1 Jul 2022 10:37:38 +0000 (12:37 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Jul 2022 20:38:50 +0000 (13:38 -0700)
commit9794633b4e9fefd83fa39c2fd05e9ac8068b744d
tree8df50a877ce0a80d743fe9d3f928061b83421c77
parent1caaa858ccec11adaa3f9a649c15b766da474078
test-tool bloom: fix memory leaks

Fix memory leaks introduced with these tests in f1294eaf7fb (bloom.c:
introduce core Bloom filter constructs, 2020-03-30), as a result we
can mark almost the entirety of t0095-bloom.sh as passing with
SANITIZE=leak using "TEST_PASSES_SANITIZE_LEAK=true", there's still an
unrelated memory leak in "git commit" in one of the tests, let's skip
that one under SANITIZE_LEAK for now.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-bloom.c
t/t0095-bloom.sh