mirror of
https://github.com/git/git
synced 2024-08-27 11:39:22 +00:00
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()
This commit is contained in:
commit
3c8e6dda21
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue