X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcurl.c;h=ac4cc512c63fd51dcdd9190814aca5e0eaf1cc7d;hb=1fc00932fd49fa535551cc4bba09c4e4be059ab4;hp=b750f80bfa82ddddfe74bf967a890cac1e87bc57;hpb=b57d6e25aa792f0461aee4e5bd6d1838c478af50;p=collectd.git diff --git a/src/curl.c b/src/curl.c index b750f80b..ac4cc512 100644 --- a/src/curl.c +++ b/src/curl.c @@ -327,7 +327,10 @@ static int cc_config_add_match (web_page_t *page, /* {{{ */ } /* while (status == 0) */ if (status != 0) + { + cc_web_match_free (match); return (status); + } match->match = match_create_simple (match->regex, match->exclude_regex, match->dstype);