Browse Source

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
Junio C Hamano 4 years ago
parent
commit
3c8e6dda21
  1. 1
      commit-graph.c

1
commit-graph.c

@ -2471,6 +2471,7 @@ cleanup: @@ -2471,6 +2471,7 @@ cleanup:
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…
Cancel
Save