Git Mailing List Archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix memory leak in get_reachable_subset
@ 2023-06-03  0:28 Mike Hommey
  2023-06-03  2:02 ` Junio C Hamano
  0 siblings, 1 reply; 9+ messages in thread
From: Mike Hommey @ 2023-06-03  0:28 UTC (permalink / raw)
  To: git; +Cc: gitster, Mike Hommey

Signed-off-by: Mike Hommey <mh@glandium.org>
---
 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


^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [PATCH] Fix memory leak in get_reachable_subset
@ 2023-04-21 23:44 Mike Hommey
  2023-04-24 15:21 ` Derrick Stolee
  2023-04-24 16:09 ` Junio C Hamano
  0 siblings, 2 replies; 9+ messages in thread
From: Mike Hommey @ 2023-04-21 23:44 UTC (permalink / raw)
  To: git; +Cc: gitster, Mike Hommey

---
 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.39.0.1.g6739ec1790


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-06-05 15:51 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-03  0:28 [PATCH] Fix memory leak in get_reachable_subset Mike Hommey
2023-06-03  2:02 ` Junio C Hamano
2023-06-03  6:02   ` René Scharfe
2023-06-04  4:42     ` Junio C Hamano
2023-06-05 15:50       ` Derrick Stolee
  -- strict thread matches above, loose matches on Subject: below --
2023-04-21 23:44 Mike Hommey
2023-04-24 15:21 ` Derrick Stolee
2023-04-24 16:09 ` Junio C Hamano
2023-04-24 20:41   ` Mike Hommey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).