zaphoyd/websocketpp — pull request #333 by aydany (2014-03-03 16:11:56+00:00)
Title: Fix memory leak on create

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.