DORMANTno replies

[PATCH] Fix memory leak in get_reachable_subset

From: Mike Hommey <hidden>
Date: 2023-06-03 01:14:29
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Mike Hommey <redacted>
---
 commit-reach.c | 2 ++
 1 file changed, 2 insertions(+)
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);
 
-- 
2.41.0.6.ge371d37104
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help