Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2023-11-26 14:57:36 +0300
committerJunio C Hamano <gitster@pobox.com>2023-11-27 03:59:56 +0300
commitcd3c28c53addae7942968f5f15854f8ce44df3ff (patch)
treef4a1c2588c13565532bb2379c76c2f506563c843 /t/t9002-column.sh
parentec583449067bab5b800ecc63926f35c9dae96fa1 (diff)
column: release strbuf and string_list after use
Releasing strbuf and string_list just before exiting is not strictly necessary, but it gets rid of false positives reported by leak checkers, which can then be more easily used to show that the column-printing machinery behind print_columns() are free of leaks. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9002-column.sh')
-rwxr-xr-xt/t9002-column.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t9002-column.sh b/t/t9002-column.sh
index 6d3dbde3fe..348cc40658 100755
--- a/t/t9002-column.sh
+++ b/t/t9002-column.sh
@@ -1,6 +1,7 @@
#!/bin/sh
test_description='git column'
+TEST_PASSES_SANITIZE_LEAK=true
. ./test-lib.sh
test_expect_success 'setup' '