summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-03-14 00:44:00 +0100
committerLinus Nordberg <linus@nordu.net>2011-03-14 00:44:00 +0100
commitc739469b9208ff8eb8bf9833ba4f0440cd7fcc16 (patch)
treed4b2b7622972e099aa31e7fa5372122999bf9cd7 /lib
parenta9279898c52517879d05b6e7422a8b186057909e (diff)
[UDP] Free the event base _after_ freeing the read and write events.
Duh!
Diffstat (limited to 'lib')
-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 */