X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmemcachec.c;h=013b6c4ed6f83053fa42ace7848218fcaaf5448c;hb=0657d95eaa686d64efe6bbccda346ebd6467bd0b;hp=93dbdbc47ad280f6a91b5793747a1397099c3259;hpb=446a764be3e33b6fa48b93049751c051724ee650;p=collectd.git diff --git a/src/memcachec.c b/src/memcachec.c index 93dbdbc4..013b6c4e 100644 --- a/src/memcachec.c +++ b/src/memcachec.c @@ -263,7 +263,10 @@ static int cmc_config_add_match (web_page_t *page, /* {{{ */ } /* while (status == 0) */ if (status != 0) + { + cmc_web_match_free (match); return (status); + } match->match = match_create_simple (match->regex, match->exclude_regex, match->dstype); @@ -500,6 +503,7 @@ static int cmc_read_page (web_page_t *wp) /* {{{ */ } cmc_submit (wp, wm, mv); + match_value_reset (mv); } /* for (wm = wp->matches; wm != NULL; wm = wm->next) */ sfree (wp->buffer);