aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-27 15:23:31 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-12-27 15:23:31 +0000
commit0eb0172c3c3cea2981ed728653cee127130e3177 (patch)
tree17f810c06291dd54a7d416c8c89a3815f48198ae /src/libserver/cfg_utils.c
parent2275d0b9ebeda6a1edffb3f1f38d3b3af7c9c8a3 (diff)
downloadrspamd-0eb0172c3c3cea2981ed728653cee127130e3177.tar.gz
rspamd-0eb0172c3c3cea2981ed728653cee127130e3177.zip
Initial implementation of documentation strings in rspamd
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c4
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);