summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */