diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-07-01 12:37:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-07-01 13:38:50 -0700 |
commit | 1caaa858ccec11adaa3f9a649c15b766da474078 (patch) | |
tree | c58e47ec334096e29e005641f42502bd15cac1a4 /t/t0019-json-writer.sh | |
parent | a20b0dc796c1fd8998ba81c985261a376c866c9b (diff) | |
download | git-1caaa858ccec11adaa3f9a649c15b766da474078.tar.gz |
test-tool json-writer: fix memory leaks
Fix memory leaks introduced with these tests in
75459410edd (json_writer: new routines to create JSON data,
2018-07-13), as a result we can mark a test as passing with
SANITIZE=leak using "TEST_PASSES_SANITIZE_LEAK=true".
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t0019-json-writer.sh')
-rwxr-xr-x | t/t0019-json-writer.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t0019-json-writer.sh b/t/t0019-json-writer.sh index 3b0c336b38..19a730c29e 100755 --- a/t/t0019-json-writer.sh +++ b/t/t0019-json-writer.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='test json-writer JSON generation' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh test_expect_success 'unit test of json-writer routines' ' |