diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-18 16:01:05 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-18 16:01:05 +0000 |
commit | aef1cac108507fcefba54694f46c4f2e8069c31d (patch) | |
tree | 5944bb32de8f4ded1cc972bf101f8846338418f2 /src/rspamd.c | |
parent | 9b31d260b9bee44456fd2f37eee6c4ba2c8aba60 (diff) | |
download | rspamd-aef1cac108507fcefba54694f46c4f2e8069c31d.tar.gz rspamd-aef1cac108507fcefba54694f46c4f2e8069c31d.zip |
Implement refcounting for configuration
Diffstat (limited to 'src/rspamd.c')
-rw-r--r-- | src/rspamd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 92b17b37e..a283abaa2 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -268,7 +268,7 @@ reread_config (struct rspamd_main *rspamd_main) struct rspamd_config *tmp_cfg; gchar *cfg_file; - tmp_cfg = rspamd_config_defaults (); + tmp_cfg = rspamd_config_new (); tmp_cfg->c_modules = g_hash_table_ref (rspamd_main->cfg->c_modules); tmp_cfg->libs_ctx = rspamd_main->cfg->libs_ctx; REF_RETAIN (tmp_cfg->libs_ctx); @@ -805,7 +805,7 @@ main (gint argc, gchar **argv, gchar **env) "main"); rspamd_main->stat = rspamd_mempool_alloc0_shared (rspamd_main->server_pool, sizeof (struct rspamd_stat)); - rspamd_main->cfg = rspamd_config_defaults (); + rspamd_main->cfg = rspamd_config_new (); #ifndef HAVE_SETPROCTITLE init_title (argc, argv, env); |