From: Florian Forster Date: Fri, 19 Jun 2015 08:54:02 +0000 (+0200) Subject: curl plugin: Fix memory leak. X-Git-Tag: collectd-5.5.1~68^2~33 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=77ba6b7fcd1704ded65f061dbd301945f5ca4ad6;p=collectd.git curl plugin: Fix memory leak. --- diff --git a/src/curl.c b/src/curl.c index ac55953c..9d2196ac 100644 --- a/src/curl.c +++ b/src/curl.c @@ -325,7 +325,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);