diff options
Diffstat (limited to 'src/rspamd.c')
-rw-r--r-- | src/rspamd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 3d42f2650..92b17b37e 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -270,7 +270,8 @@ reread_config (struct rspamd_main *rspamd_main) tmp_cfg = rspamd_config_defaults (); tmp_cfg->c_modules = g_hash_table_ref (rspamd_main->cfg->c_modules); - tmp_cfg->libs_ctx = REF_RETAIN (rspamd_main->cfg->libs_ctx); + tmp_cfg->libs_ctx = rspamd_main->cfg->libs_ctx; + REF_RETAIN (tmp_cfg->libs_ctx); rspamd_set_logger (tmp_cfg, g_quark_try_string ("main"), rspamd_main); cfg_file = rspamd_mempool_strdup (tmp_cfg->cfg_pool, rspamd_main->cfg->cfg_name); |