diff options
author | Maksim Yevmenkin <emax@freebsd.org> | 2011-10-21 09:07:13 +0000 |
---|---|---|
committer | Stef Walter <stefw@collabora.co.uk> | 2011-10-21 09:07:13 +0000 |
commit | 854c154850e8327cdd09234ec4f9370b1a095a62 (patch) | |
tree | 779a1ca703915c52ab52ca0283eb1b7b05912bc7 | |
parent | fd69b123688fc313753dde0c222287e99ab5bae1 (diff) |
Fix problem freeing connection before it's removed from list.
-rw-r--r-- | module/bsnmp-regex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/bsnmp-regex.c b/module/bsnmp-regex.c index ffc22c1..fd623e3 100644 --- a/module/bsnmp-regex.c +++ b/module/bsnmp-regex.c @@ -441,8 +441,8 @@ close_connection (struct connection *conn) close (conn->fd); conn->fd = -1; - free (conn); TAILQ_REMOVE (&connections, conn, link); + free (conn); } static void |