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: https://git.tokkee.org/?a=commitdiff_plain;h=d641c344c11fd30abe9faab5668152f2e413f1b9;p=collectd.git configfile: Free a string buffer returned by cf_util_get_string(). --- diff --git a/src/configfile.c b/src/configfile.c index d6aa72de..064c9a40 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;