diff options
author | Linus Nordberg <linus@nordu.net> | 2011-03-14 00:44:00 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-03-14 00:44:00 +0100 |
commit | c739469b9208ff8eb8bf9833ba4f0440cd7fcc16 (patch) | |
tree | d4b2b7622972e099aa31e7fa5372122999bf9cd7 /lib | |
parent | a9279898c52517879d05b6e7422a8b186057909e (diff) |
[UDP] Free the event base _after_ freeing the read and write events.
Duh!
Diffstat (limited to 'lib')
-rw-r--r-- | lib/conn.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |