From: Sebastian Harl Date: Wed, 28 Nov 2012 08:44:59 +0000 (+0100) Subject: configfile: Free a string buffer returned by cf_util_get_string(). X-Git-Tag: collectd-5.3.0~68^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d641c344c11fd30abe9faab5668152f2e413f1b9;p=thirdparty%2Fcollectd.git configfile: Free a string buffer returned by cf_util_get_string(). --- diff --git a/src/configfile.c b/src/configfile.c index d6aa72de6..064c9a405 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -583,6 +583,8 @@ static int cf_include_all (oconfig_item_t *root, int depth) } new = cf_read_generic (old->values[0].value.string, pattern, depth + 1); + sfree (pattern); + if (new == NULL) continue;