commit-graph: free write-context base_graph_name during cleanup
commitd9c84c6d67e3418bade00af7bcb5f72d7c656164
authorJeff King <peff@peff.net>
Tue, 3 Oct 2023 20:31:11 +0000 (3 16:31 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Oct 2023 21:28:24 +0000 (3 14:28 -0700)
tree6b8a51cfb851cb3b261264466f60d76f043c8637
parent274bfa7f28fea96fafa114f2508ebef53735d7b6
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>
commit-graph.c
t/t5328-commit-graph-64bit-time.sh