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:
authorJunio C Hamano <gitster@pobox.com>2023-06-21 01:53:11 +0300
committerJunio C Hamano <gitster@pobox.com>2023-06-21 01:53:11 +0300
commit693bde461cfc3b2bd448ebc3c300302a167febba (patch)
treed77343204cd587fc352a0e801c195726990ce576 /commit-reach.c
parent7f9b5ff41ecc069753cb60e375286e4c90fe3bbd (diff)
parent68b51172e310beeb4ace56645a9f2b823e6fe12d (diff)
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()
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 70bde8af05..f15d84566b 100644
--- a/commit-reach.c
+++ b/commit-reach.c
@@ -944,6 +944,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);