From: Vsevolod Stakhov Date: Mon, 21 May 2018 11:44:18 +0000 (+0100) Subject: [Fix] Fix double free X-Git-Tag: 1.7.6~120 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f160bf3b0abf77c7f48c2ea85e7a7e0f5d678926;p=rspamd.git [Fix] Fix double free --- 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;