From: Vsevolod Stakhov Date: Thu, 29 Jan 2015 17:09:42 +0000 (+0000) Subject: Free router's key. X-Git-Tag: 0.9.0~815 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=40c399d03f86dd3282afa038e608e358097651ae;p=rspamd.git Free router's key. --- 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); }