diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-03 17:10:34 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-12-03 17:10:34 +0000 |
commit | 45e84668a1c7a7131db53e2b94375cfc98d68556 (patch) | |
tree | 6f39b6fa4420d7476bff5c91a6c99998063358ec /src/libserver/cfg_utils.c | |
parent | b279f5c311ad4a454f9aef1f373d88bd2aed9b81 (diff) | |
download | rspamd-45e84668a1c7a7131db53e2b94375cfc98d68556.tar.gz rspamd-45e84668a1c7a7131db53e2b94375cfc98d68556.zip |
Start new era of regexp cache
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r-- | src/libserver/cfg_utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 042658f8a..2d185a59d 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -198,6 +198,7 @@ rspamd_config_new (void) cfg->lua_state = rspamd_lua_init (cfg); cfg->cache = rspamd_symbols_cache_new (cfg); cfg->ups_ctx = rspamd_upstreams_library_init (); + cfg->re_cache = rspamd_regexp_cache_new (); REF_INIT_RETAIN (cfg, rspamd_config_free); @@ -229,6 +230,7 @@ rspamd_config_free (struct rspamd_config *cfg) g_list_free (cfg->metrics_list); rspamd_symbols_cache_destroy (cfg->cache); REF_RELEASE (cfg->libs_ctx); + rspamd_re_cache_unref (cfg->re_cache); rspamd_upstreams_library_unref (cfg->ups_ctx); rspamd_mempool_delete (cfg->cfg_pool); lua_close (cfg->lua_state); |