aboutsummaryrefslogtreecommitdiffstats
path: root/t/helper/test-json-writer.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-07-01 12:37:36 +0200
committerJunio C Hamano <gitster@pobox.com>2022-07-01 13:38:50 -0700
commita20b0dc796c1fd8998ba81c985261a376c866c9b (patch)
treeb350dc43f957c9ac383e87c212b07ef72c376846 /t/helper/test-json-writer.c
parenttest-tool urlmatch-normalization: fix a memory leak (diff)
downloadgit-a20b0dc796c1fd8998ba81c985261a376c866c9b.tar.gz
git-a20b0dc796c1fd8998ba81c985261a376c866c9b.zip
test-tool regex: call regfree(), fix memory leaks
Fix memory leaks in "test-tool regex" which have been there since c91841594c2 (test-regex: Add a test to check for a bug in the regex routines, 2012-09-01), as a result we can mark a test as passing with SANITIZE=leak using "TEST_PASSES_SANITIZE_LEAK=true". We could regfree() on the die() paths here, which would make some invocations of valgrind(1) happy, but let's just target SANITIZE=leak for now. Variables that are still reachable when we die() are not reported as leaks. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/helper/test-json-writer.c')
0 files changed, 0 insertions, 0 deletions