diff options
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r-- | src/libserver/cfg_utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 185c28adb..a3d801939 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -200,6 +200,7 @@ rspamd_config_new (void) cfg->cache = rspamd_symbols_cache_new (cfg); cfg->ups_ctx = rspamd_upstreams_library_init (); cfg->re_cache = rspamd_re_cache_new (); + cfg->doc_strings = ucl_object_typed_new (UCL_OBJECT); REF_INIT_RETAIN (cfg, rspamd_config_free); @@ -210,7 +211,8 @@ void rspamd_config_free (struct rspamd_config *cfg) { rspamd_map_remove_all (cfg); - ucl_obj_unref (cfg->rcl_obj); + ucl_object_unref (cfg->rcl_obj); + ucl_object_unref (cfg->doc_strings); g_hash_table_remove_all (cfg->metrics); g_hash_table_unref (cfg->metrics); g_hash_table_unref (cfg->c_modules); |