Skip to content

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