diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-18 15:19:36 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-11-18 15:19:36 +0000 |
commit | ceb133b5e603c04cfa5c8da8851c8134523e0ee9 (patch) | |
tree | 631e1f166147a6a5bf3b6b1c50527f1514e2f4e3 /src/libserver/cfg_utils.c | |
parent | b33f3fa4cfa42f1b92192ff18eb893b8bd93a1e9 (diff) | |
download | rspamd-ceb133b5e603c04cfa5c8da8851c8134523e0ee9.tar.gz rspamd-ceb133b5e603c04cfa5c8da8851c8134523e0ee9.zip |
Fix issues found
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r-- | src/libserver/cfg_utils.c | 3 |
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 * |