summaryrefslogtreecommitdiff
path: root/lib/conn.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/conn.c')
-rw-r--r--lib/conn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/conn.c b/lib/conn.c
index 58290f5..9f114a5 100644
--- a/lib/conn.c
+++ b/lib/conn.c
@@ -130,12 +130,12 @@ rs_conn_destroy (struct rs_connection *conn)
event_free (conn->tev);
if (conn->bev)
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);
+ if (conn->evb)
+ event_base_free (conn->evb);
/* TODO: free tls_ctx */
/* TODO: free tls_ssl */