summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-02-25 16:43:31 -0800
committerJunio C Hamano <gitster@pobox.com>2021-02-25 16:43:31 -0800
commit3c8e6dda21be5514c7d916604a6bcfd117c8b6ef (patch)
tree57ebf5b8bd4e2090e140687af5c19dec2d87dc64
parentMerge branch 'zh/difftool-skip-to' (diff)
parentcommit-graph: avoid leaking topo_levels slab in write_commit_graph() (diff)
downloadgit-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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit-graph.c b/commit-graph.c
index ed31843fa52..7a5f15b8426 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++) {