aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-21 12:44:18 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-05-21 12:44:34 +0100
commitf160bf3b0abf77c7f48c2ea85e7a7e0f5d678926 (patch)
tree29f05dad6b862898aaf8ca01afc9ec71e810350a /src
parentae1b483ce0457b05dce04264e25e306444467646 (diff)
downloadrspamd-f160bf3b0abf77c7f48c2ea85e7a7e0f5d678926.tar.gz
rspamd-f160bf3b0abf77c7f48c2ea85e7a7e0f5d678926.zip
[Fix] Fix double free
Diffstat (limited to 'src')
-rw-r--r--src/plugins/surbl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index 17bc26688..d0bdd3b8c 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -696,7 +696,6 @@ surbl_module_parse_rule (const ucl_object_t* value, struct rspamd_config* cfg)
/* Mutually exclusive options */
msg_err_config ("options noip and resolve_ip are "
"mutually exclusive for suffix %s", new_suffix->suffix);
- ucl_object_unref (ropts);
continue;
}
@@ -845,8 +844,6 @@ surbl_module_parse_rule (const ucl_object_t* value, struct rspamd_config* cfg)
RSPAMD_MONITORED_DEFAULT, ropts);
surbl_module_ctx->suffixes = g_list_prepend (surbl_module_ctx->suffixes,
new_suffix);
-
- ucl_object_unref (ropts);
}
return nrules;