Re: [PATCH] Fix memory leak in get_reachable_subset
- From
Derrick Stolee <derrickstolee@github.com>
- Date
- Apr 24, 2023, 15:21 UTC
- Message-ID
- <d2825134-61db-9da4-450c-f027117b3d48@github.com>
- In-Reply-To
- <20230421234409.1925489-1-mh@glandium.org>
On 4/21/2023 7:44 PM, Mike Hommey wrote:
Show 6 quoted lines
> @@ -944,6 +944,8 @@ struct commit_list *get_reachable_subset(struct commit **from, int nr_from, > } > } > > + clear_prio_queue(&queue); > +
Thanks. This is a leak that has existed since the method was first created in fcb2c0769db (commit-reach: implement get_reachable_subset, 2018-11-02). I appreciate the attention to detail.
-Stolee