diff --git a/commit-graph.c b/commit-graph.c index ed31843fa522ee..9529ec5521390b 100644 --- a/commit-graph.c +++ b/commit-graph.c @@ -2471,6 +2471,7 @@ int write_commit_graph(struct object_directory *odb, free(ctx->graph_name); free(ctx->commits.list); oid_array_clear(&ctx->oids); + clear_topo_level_slab(&topo_levels); if (ctx->commit_graph_filenames_after) { for (i = 0; i < ctx->num_commit_graphs_after; i++) {