summaryrefslogtreecommitdiff
path: root/module/bsnmp-regex.c
diff options
context:
space:
mode:
authorMaksim Yevmenkin <emax@freebsd.org>2011-10-21 09:07:13 +0000
committerStef Walter <stefw@collabora.co.uk>2011-10-21 09:07:13 +0000
commit854c154850e8327cdd09234ec4f9370b1a095a62 (patch)
tree779a1ca703915c52ab52ca0283eb1b7b05912bc7 /module/bsnmp-regex.c
parentfd69b123688fc313753dde0c222287e99ab5bae1 (diff)
Fix problem freeing connection before it's removed from list.
Diffstat (limited to 'module/bsnmp-regex.c')
-rw-r--r--module/bsnmp-regex.c2
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