From 854c154850e8327cdd09234ec4f9370b1a095a62 Mon Sep 17 00:00:00 2001 From: Maksim Yevmenkin Date: Fri, 21 Oct 2011 09:07:13 +0000 Subject: Fix problem freeing connection before it's removed from list. --- module/bsnmp-regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3