Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix memory leak on create #333

Merged
merged 1 commit into from
Mar 3, 2014
Merged

Fix memory leak on create #333

merged 1 commit into from
Mar 3, 2014

Conversation

aydany
Copy link

@aydany aydany commented Mar 3, 2014

If the socket fails to initialize, e.g., by omitting the tis init
handler, the connection is leaked, since there is a circular reference
between the connection and its async_read/async_write handlers. To fix
this, check the error code, and reset the handler if an error has
occurred.

If the socket fails to initialize, e.g., by omitting the tis init
handler, the connection is leaked, since there is a circular reference
between the connection and its async_read/async_write handlers. To fix
this, check the error code, and reset the handler is an error has
occurred.
zaphoyd added a commit that referenced this pull request Mar 3, 2014
Fix memory leak when init_asio fails
@zaphoyd zaphoyd merged commit fe00a84 into zaphoyd:master Mar 3, 2014
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants