diff options
author | Linus Nordberg <linus@nordu.net> | 2011-03-13 15:30:36 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-03-13 15:30:36 +0100 |
commit | a36004c2baa34b4933af3115f920d3904857e19f (patch) | |
tree | 35971daa07c70348e08e328ba96f669254ee4b8c /lib | |
parent | 486662495bb2b87955d4ae4cc16a203edf25d5b4 (diff) |
[UDP] Free read/write events when destroying connection.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/conn.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -131,6 +131,10 @@ rs_conn_destroy (struct rs_connection *conn) bufferevent_free (conn->bev); if (conn->evb) event_base_free (conn->evb); + if (conn->rev) + event_free (conn->rev); + if (conn->wev) + event_free (conn->wev); /* TODO: free tls_ctx */ /* TODO: free tls_ssl */ |