aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-18 15:19:36 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-11-18 15:19:36 +0000
commitceb133b5e603c04cfa5c8da8851c8134523e0ee9 (patch)
tree631e1f166147a6a5bf3b6b1c50527f1514e2f4e3 /src/libserver/cfg_utils.c
parentb33f3fa4cfa42f1b92192ff18eb893b8bd93a1e9 (diff)
downloadrspamd-ceb133b5e603c04cfa5c8da8851c8134523e0ee9.tar.gz
rspamd-ceb133b5e603c04cfa5c8da8851c8134523e0ee9.zip
Fix issues found
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index 5d0eb06ae..4146d51cb 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -199,6 +199,8 @@ rspamd_config_defaults (void)
cfg->cache = rspamd_symbols_cache_new (cfg);
REF_INIT_RETAIN (cfg, rspamd_config_free);
+
+ return cfg;
}
void
@@ -228,6 +230,7 @@ rspamd_config_free (struct rspamd_config *cfg)
rspamd_symbols_cache_destroy (cfg->cache);
REF_RELEASE (cfg->libs_ctx);
rspamd_mempool_delete (cfg->cfg_pool);
+ g_slice_free1 (sizeof (*cfg), cfg);
}
const ucl_object_t *