aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-15 14:11:30 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-06-15 14:11:30 +0100
commitc08f35e976223b58cf76e8cfe2dac8f457e32fee (patch)
tree2ef363c56527e009baaeb01a47eb9a9ecd3bc7ce /src/libserver/cfg_utils.c
parent3c6829656593b2fac53e09d0c34452ba1de9965d (diff)
downloadrspamd-c08f35e976223b58cf76e8cfe2dac8f457e32fee.tar.gz
rspamd-c08f35e976223b58cf76e8cfe2dac8f457e32fee.zip
[Minor] More init leaks
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r--src/libserver/cfg_utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index cf7f8d847..6083d655f 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -1450,9 +1450,8 @@ rspamd_init_filters (struct rspamd_config *cfg, bool reconfig)
mod = *pmod;
if (rspamd_check_module (cfg, mod)) {
- mod_ctx = g_malloc0 (sizeof (struct module_ctx));
-
if (mod->module_init_func (cfg, &mod_ctx) == 0) {
+ g_assert (mod_ctx != NULL);
g_hash_table_insert (cfg->c_modules,
(gpointer) mod->name,
mod_ctx);