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

Bit copy user data to user_data pointer when it's size is equal or smaller than pointer #119

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

demotomohiro
Copy link
Contributor

When connect() template got user data that's size is equal to or smaller than a pointer, it directly copy to user_data instead of allocating a new heap to keep it.
So when connect() is called with int, float, bool, pointer etc, it doesn't need to care about heap memory to keep user_data.
Partially fix #118.

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.

Memory leak in connect() template
1 participant