]> source.dussan.org Git - rspamd.git/commitdiff
Free router's key.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 29 Jan 2015 17:09:42 +0000 (17:09 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 29 Jan 2015 17:09:42 +0000 (17:09 +0000)
src/libutil/http.c

index 2e7e144ebb8e041a019eb1fa856c068d16f04aa3..c00d2c40cfaae8132a685ded7a0609791d827692 100644 (file)
@@ -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);
                }