Skip to content

Conversation

@rafalmiel
Copy link
Contributor

@rafalmiel rafalmiel commented Jan 30, 2021

If key contains heap allocated data (eg. String), pop method will leak its value since MaybeUninit requires manual drop.

Add drop_in_place call for key value in pop method.

@jeromefroe jeromefroe merged commit ec25be4 into jeromefroe:master Feb 4, 2021
@jeromefroe
Copy link
Owner

@rafalmiel thank you for fixing this! I'll cut a new release with these changes.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants