Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Hommey <mh@glandium.org>2023-06-03 03:28:19 +0300
committerJunio C Hamano <gitster@pobox.com>2023-06-04 07:43:48 +0300
commit68b51172e310beeb4ace56645a9f2b823e6fe12d (patch)
tree37b35dc9c7804e51663779296e7fab18f5e45b62 /commit-reach.c
parent0d1bd1dfb37ef25e1911777c94129fc769ffec38 (diff)
commit-reach: fix memory leak in get_reachable_subset()
This is a leak that has existed since the method was first created in fcb2c0769db (commit-reach: implement get_reachable_subset, 2018-11-02). Signed-off-by: Mike Hommey <mh@glandium.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit-reach.c')
-rw-r--r--commit-reach.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/commit-reach.c b/commit-reach.c
index 2e33c599a8..58267d5420 100644
--- a/commit-reach.c
+++ b/commit-reach.c
@@ -936,6 +936,8 @@ struct commit_list *get_reachable_subset(struct commit **from, int nr_from,
}
}
+ clear_prio_queue(&queue);
+
clear_commit_marks_many(nr_to, to, PARENT1);
clear_commit_marks_many(nr_from, from, PARENT2);