]> Kevux Git Server - rit/commit
tests: fix test-oid-array leak, test in SANITIZE=leak
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 7 Oct 2021 10:01:34 +0000 (12:01 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Oct 2021 22:40:15 +0000 (15:40 -0700)
commit6ad66ab45e5e23378a6abf2c1d680b4cf8b85877
tree7e00f63dfb94b450e0bea297d3ada7eaa6757a3d
parent926d2330357a4ee7247b83ec4fd1ed6dba72c54e
tests: fix test-oid-array leak, test in SANITIZE=leak

Fix a trivial memory leak present ever since 38d905bf585 (sha1-array:
add test-sha1-array and basic tests, 2014-10-01), now that that's
fixed we can test this under GIT_TEST_PASSING_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-oid-array.c
t/t0064-oid-array.sh