From d9c84c6d67e3418bade00af7bcb5f72d7c656164 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Tue, 3 Oct 2023 16:31:11 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- commit-graph.c | 1 + 1 file changed, 1 insertion(+) (limited to 'commit-graph.c') diff --git a/commit-graph.c b/commit-graph.c index 744b7eb1a3..e4d09da090 100644 --- a/commit-graph.c +++ b/commit-graph.c @@ -2518,6 +2518,7 @@ int write_commit_graph(struct object_directory *odb, cleanup: free(ctx->graph_name); + free(ctx->base_graph_name); free(ctx->commits.list); oid_array_clear(&ctx->oids); clear_topo_level_slab(&topo_levels); -- cgit v1.2.3