diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-01 17:34:25 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-01 17:34:25 +0100 |
commit | e662595f7d164e2d1884f099195065f975f64ac8 (patch) | |
tree | 9b957bc046cabc696f127bd4443bbd3d9f2fbc61 /src/libserver/cfg_utils.c | |
parent | 04dee5ab21432d54df1c3e9d8d878e6c5dd99143 (diff) | |
download | rspamd-e662595f7d164e2d1884f099195065f975f64ac8.tar.gz rspamd-e662595f7d164e2d1884f099195065f975f64ac8.zip |
Add debug_modules option.
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 161ea9501..776d00670 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -165,6 +165,7 @@ rspamd_config_defaults (struct rspamd_config *cfg) rspamd_str_equal); cfg->cfg_params = g_hash_table_new (rspamd_str_hash, rspamd_str_equal); cfg->metrics_symbols = g_hash_table_new (rspamd_str_hash, rspamd_str_equal); + cfg->debug_modules = g_hash_table_new (rspamd_str_hash, rspamd_str_equal); cfg->map_timeout = DEFAULT_MAP_TIMEOUT; @@ -188,7 +189,8 @@ rspamd_config_free (struct rspamd_config *cfg) g_hash_table_remove_all (cfg->cfg_params); g_hash_table_unref (cfg->cfg_params); g_hash_table_destroy (cfg->metrics_symbols); - g_hash_table_destroy (cfg->classifiers_symbols); + g_hash_table_unref (cfg->classifiers_symbols); + g_hash_table_unref (cfg->debug_modules); if (cfg->checksum) { g_free (cfg->checksum); |