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 #79: don't reuse m_buckets when allocator does not compare equal #80

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

martinus
Copy link
Owner

m_buckets can only be reused when the allocators are equal. Otherwise we would deallocate with m_buckets with the incorrect allocator.

Also bumped the version for the fix.

m_buckets can only be reused when the allocators are equal. Otherwise we would deallocate with m_buckets with the incorrect allocator.

Also bumped the version for the fix.
@martinus martinus merged commit a9893b3 into main Jul 13, 2023
8 checks passed
@martinus martinus deleted the 2023-07-fix-segfault-with-different-allocators branch July 13, 2023 18:29
@martinus martinus restored the 2023-07-fix-segfault-with-different-allocators branch July 13, 2023 18:35
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.

None yet

1 participant