diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-29 17:09:42 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-29 17:09:42 +0000 |
commit | 40c399d03f86dd3282afa038e608e358097651ae (patch) | |
tree | 85feee9148120016989b77a8f6a48f2fc18603a7 /src | |
parent | 3a0bbd8895c957d57a27ed90fcb320d60bb8b104 (diff) | |
download | rspamd-40c399d03f86dd3282afa038e608e358097651ae.tar.gz rspamd-40c399d03f86dd3282afa038e608e358097651ae.zip |
Free router's key.
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/http.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); } |