aboutsummaryrefslogtreecommitdiffstats
path: root/commit-reach.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-10-13 14:18:28 -0700
committerJunio C Hamano <gitster@pobox.com>2023-10-13 14:18:28 -0700
commita45eddec40b7fd0b9a86ccd0e889a785829d55d7 (patch)
tree8193fea2e96795af6435e37d2539614fe3e47135 /commit-reach.c
parentMerge branch 'la/trailer-test-and-doc-updates' (diff)
parentcommit-graph: clear oidset after finishing write (diff)
downloadgit-a45eddec40b7fd0b9a86ccd0e889a785829d55d7.tar.gz
git-a45eddec40b7fd0b9a86ccd0e889a785829d55d7.zip
Merge branch 'jk/commit-graph-leak-fixes'
Leakfix. * jk/commit-graph-leak-fixes: commit-graph: clear oidset after finishing write commit-graph: free write-context base_graph_name during cleanup commit-graph: free write-context entries before overwriting commit-graph: free graph struct that was not added to chain commit-graph: delay base_graph assignment in add_graph_to_chain() commit-graph: free all elements of graph chain commit-graph: move slab-clearing to close_commit_graph() merge: free result of repo_get_merge_bases() commit-reach: free temporary list in get_octopus_merge_bases() t6700: mark test as leak-free
Diffstat (limited to 'commit-reach.c')
-rw-r--r--commit-reach.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/commit-reach.c b/commit-reach.c
index 4b7c233fd4..a868a575ea 100644
--- a/commit-reach.c
+++ b/commit-reach.c
@@ -173,6 +173,7 @@ struct commit_list *get_octopus_merge_bases(struct commit_list *in)
for (k = bases; k; k = k->next)
end = k;
}
+ free_commit_list(ret);
ret = new_commits;
}
return ret;