diff options
author | Jeff King <peff@peff.net> | 2023-10-03 23:31:11 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-10-04 00:28:24 +0300 |
commit | d9c84c6d67e3418bade00af7bcb5f72d7c656164 (patch) | |
tree | 6b8a51cfb851cb3b261264466f60d76f043c8637 /t/t5328-commit-graph-64bit-time.sh | |
parent | 274bfa7f28fea96fafa114f2508ebef53735d7b6 (diff) |
commit-graph: free write-context base_graph_name during cleanup
Commit 6c622f9f0b (commit-graph: write commit-graph chains, 2019-06-18)
added a base_graph_name string to the write_commit_graph_context struct.
But the end-of-function cleanup forgot to free it, causing a leak.
This (presumably in combination with the preceding leak-fixes) lets us
mark t5328 as leak-free.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5328-commit-graph-64bit-time.sh')
-rwxr-xr-x | t/t5328-commit-graph-64bit-time.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/t5328-commit-graph-64bit-time.sh b/t/t5328-commit-graph-64bit-time.sh index e9c521c061..ca476e80a0 100755 --- a/t/t5328-commit-graph-64bit-time.sh +++ b/t/t5328-commit-graph-64bit-time.sh @@ -1,6 +1,8 @@ #!/bin/sh test_description='commit graph with 64-bit timestamps' + +TEST_PASSES_SANITIZE_LEAK=true . ./test-lib.sh if ! test_have_prereq TIME_IS_64BIT || ! test_have_prereq TIME_T_IS_64BIT |