leak tests: fix a memory leak in "test-progress" helper
commit8266e0c02973618f68b45957a2dcb29660737486
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Thu, 3 Feb 2022 21:40:11 +0000 (3 22:40 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 3 Feb 2022 23:39:55 +0000 (3 15:39 -0800)
tree7cb137b08a55477672cbdf2c05061adf26908425
parenteb27b338a3e71c7c4079fbac8aeae3f8fbb5c687
leak tests: fix a memory leak in "test-progress" helper

Fix a memory leak in the test-progress helper, and mark the
corresponding "t0500-progress-display.sh" test as being leak-free
under SANITIZE=leak. This fixes a leak added in 2bb74b53a4 (Test the
progress display, 2019-09-16).

My 48f68715b14 (tr2: stop leaking "thread_name" memory, 2021-08-27)
had fixed another memory leak in this test (as it did some trace2
testing).

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