Memory leaks in BTreeMap with allocator_api
enabled
#106203
Labels
A-allocators
Area: Custom and system allocators
C-bug
Category: This is a bug.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Uh oh!
There was an error while loading. Please reload this page.
I tried this code:
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=23d67c52988b3be4eb1ddb6373da124d
I expected to see this happen:
The reference count of the
Arc
should reduce to 1, so that it can be released correctly.Instead, this happened:
The reference count of the
Arc
remains 2, so it will never be released.Meta
with
The text was updated successfully, but these errors were encountered: