diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-02-26 01:43:31 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-02-26 01:43:31 +0100 |
commit | 3c8e6dda21be5514c7d916604a6bcfd117c8b6ef (patch) | |
tree | 57ebf5b8bd4e2090e140687af5c19dec2d87dc64 | |
parent | Merge branch 'zh/difftool-skip-to' (diff) | |
parent | commit-graph: avoid leaking topo_levels slab in write_commit_graph() (diff) | |
download | git-3c8e6dda21be5514c7d916604a6bcfd117c8b6ef.tar.xz git-3c8e6dda21be5514c7d916604a6bcfd117c8b6ef.zip |
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()
-rw-r--r-- | commit-graph.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/commit-graph.c b/commit-graph.c index ed31843fa5..7a5f15b842 100644 --- a/commit-graph.c +++ b/commit-graph.c @@ -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++) { |