Skip to content

Commit 3c8e6dd

Browse files
committed
Merge branch 'ah/commit-graph-leakplug'
Plug a minor memory leak. * ah/commit-graph-leakplug: commit-graph: avoid leaking topo_levels slab in write_commit_graph()
2 parents 6eea44c + bf4bb9f commit 3c8e6dd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

commit-graph.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2471,6 +2471,7 @@ int write_commit_graph(struct object_directory *odb,
24712471
free(ctx->graph_name);
24722472
free(ctx->commits.list);
24732473
oid_array_clear(&ctx->oids);
2474+
clear_topo_level_slab(&topo_levels);
24742475

24752476
if (ctx->commit_graph_filenames_after) {
24762477
for (i = 0; i < ctx->num_commit_graphs_after; i++) {

0 commit comments

Comments
 (0)