From d641c344c11fd30abe9faab5668152f2e413f1b9 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Wed, 28 Nov 2012 09:44:59 +0100 Subject: [PATCH] configfile: Free a string buffer returned by cf_util_get_string(). --- src/configfile.c | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.30.2