commit - 442ede73eadb025cdc45bede186bf31aee869dad
commit + 9aae7366832613bbb94f56a2465380f5c2f56e7f
blob - 01dc8264285fe44769741f2870eda27d3d1e6b16
blob + ba9fa9fb981f796ba43c099da5e0ec23e4894c16
--- lib/commit_graph.c
+++ lib/commit_graph.c
void
got_commit_graph_close(struct got_commit_graph *graph)
{
+ struct got_commit_graph_node *node;
+
+ while ((node = TAILQ_FIRST(&graph->iter_list))) {
+ TAILQ_REMOVE(&graph->iter_list, node, entry);
+ free(node);
+ }
+
if (graph->open_branches)
got_object_idset_free(graph->open_branches);
if (graph->node_ids)