summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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