From: Florian Forster Date: Fri, 19 Jun 2015 08:54:02 +0000 (+0200) Subject: memcachec plugin: Fix memory leak. X-Git-Tag: collectd-5.5.1~68^2~27 X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=ecacce80b1eefa9b40006323c8fb43920aa9570f;p=collectd.git memcachec plugin: Fix memory leak. --- diff --git a/src/memcachec.c b/src/memcachec.c index 7c8528d5..72544fcf 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);