Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix two memory leaks in crossbeam-skiplist #673

Merged
merged 2 commits into from
Mar 4, 2021

Conversation

sticnarf
Copy link
Contributor

@sticnarf sticnarf commented Mar 4, 2021

Closes #671. Closes #672.

The first one is like a6de0ca, but the previous commit missed fixing RefRange.

The second problem is that remove increases the ref count but not returning the entry when the tower is not marked by the current thread. So the leak should be fixed if we always return the entry once the ref count is increased.

sticnarf added 2 commits March 4, 2021 10:25
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
Copy link
Member

@taiki-e taiki-e left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 4, 2021

Build succeeded:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants