summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-03-13 15:30:36 +0100
committerLinus Nordberg <linus@nordu.net>2011-03-13 15:30:36 +0100
commita36004c2baa34b4933af3115f920d3904857e19f (patch)
tree35971daa07c70348e08e328ba96f669254ee4b8c /lib
parent486662495bb2b87955d4ae4cc16a203edf25d5b4 (diff)
[UDP] Free read/write events when destroying connection.
Diffstat (limited to 'lib')
-rw-r--r--lib/conn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/conn.c b/lib/conn.c
index c60ecf9..f85eec6 100644
--- a/lib/conn.c
+++ b/lib/conn.c
@@ -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 */