]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix double free
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 21 May 2018 11:44:18 +0000 (12:44 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 21 May 2018 11:44:34 +0000 (12:44 +0100)
src/plugins/surbl.c

index 17bc266880cdfe622a9632b82828e814fc5b14d8..d0bdd3b8cf2fe2cd15d90e411ba34ffe3650a807 100644 (file)
@@ -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;