mirror of
https://github.com/git/git
synced 2024-11-05 18:59:29 +00:00
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 in2bb74b53a4
(Test the progress display, 2019-09-16). My48f68715b1
(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>
This commit is contained in:
parent
eb27b338a3
commit
8266e0c029
2 changed files with 2 additions and 0 deletions
|
@ -69,6 +69,7 @@ int cmd__progress(int argc, const char **argv)
|
|||
die("invalid input: '%s'\n", line.buf);
|
||||
}
|
||||
stop_progress(&progress);
|
||||
strbuf_release(&line);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
test_description='progress display'
|
||||
|
||||
TEST_PASSES_SANITIZE_LEAK=true
|
||||
. ./test-lib.sh
|
||||
|
||||
show_cr () {
|
||||
|
|
Loading…
Reference in a new issue