X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcurl.c;h=ac4cc512c63fd51dcdd9190814aca5e0eaf1cc7d;hb=6d8c3791a98eda82702ece14dbda46bc5f3de928;hp=b750f80bfa82ddddfe74bf967a890cac1e87bc57;hpb=dc7e14787cc4273927d5d0cdbd00fd41a0bee928;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);