Skip to content

Commit 693bde4

Browse files
committed
Merge branch 'mh/commit-reach-get-reachable-plug-leak'
Plug memory leak. * mh/commit-reach-get-reachable-plug-leak: commit-reach: fix memory leak in get_reachable_subset()
2 parents 7f9b5ff + 68b5117 commit 693bde4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

commit-reach.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,8 @@ struct commit_list *get_reachable_subset(struct commit **from, int nr_from,
944944
}
945945
}
946946

947+
clear_prio_queue(&queue);
948+
947949
clear_commit_marks_many(nr_to, to, PARENT1);
948950
clear_commit_marks_many(nr_from, from, PARENT2);
949951

0 commit comments

Comments
 (0)