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()maint
commit
3c8e6dda21
|
|
@ -2471,6 +2471,7 @@ cleanup:
|
||||||
free(ctx->graph_name);
|
free(ctx->graph_name);
|
||||||
free(ctx->commits.list);
|
free(ctx->commits.list);
|
||||||
oid_array_clear(&ctx->oids);
|
oid_array_clear(&ctx->oids);
|
||||||
|
clear_topo_level_slab(&topo_levels);
|
||||||
|
|
||||||
if (ctx->commit_graph_filenames_after) {
|
if (ctx->commit_graph_filenames_after) {
|
||||||
for (i = 0; i < ctx->num_commit_graphs_after; i++) {
|
for (i = 0; i < ctx->num_commit_graphs_after; i++) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue