From 40c399d03f86dd3282afa038e608e358097651ae Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 29 Jan 2015 17:09:42 +0000 Subject: [PATCH] Free router's key. --- src/libutil/http.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libutil/http.c b/src/libutil/http.c index 2e7e144eb..c00d2c40c 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -1630,6 +1630,7 @@ void rspamd_http_router_free (struct rspamd_http_connection_router *router) { struct rspamd_http_connection_entry *conn, *tmp; + struct rspamd_http_keypair *kp; if (router) { LL_FOREACH_SAFE (router->conns, conn, tmp) @@ -1637,6 +1638,11 @@ rspamd_http_router_free (struct rspamd_http_connection_router *router) rspamd_http_entry_free (conn); } + if (router->key) { + kp = (struct rspamd_http_keypair *)router->key; + REF_RELEASE (kp); + } + if (router->default_fs_path != NULL) { g_free (router->default_fs_path); } -- 2.39.5