Skip to content

Fix memory leak in FuturesUnordered::IntoIter#3005

Open
paolobarbolini wants to merge 1 commit intorust-lang:masterfrom
paolobarbolini:fix-futures-unordered-into-iter-leak
Open

Fix memory leak in FuturesUnordered::IntoIter#3005
paolobarbolini wants to merge 1 commit intorust-lang:masterfrom
paolobarbolini:fix-futures-unordered-into-iter-leak

Conversation

@paolobarbolini
Copy link
Copy Markdown
Contributor

Fixes #3004

`IntoIter::next` advanced `head_all` past consumed tasks without
reclaiming the `Arc<Task>` reference created by `link()`. This leaked
the task allocation when the task was not in the ready-to-run queue.
@rustbot rustbot added A-stream Area: futures::stream S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-stream Area: futures::stream S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FuturesUnordered::IntoIter leaks Arc<Task> allocations for consumed entries

2 participants