configfile: Free a string buffer returned by cf_util_get_string().
authorSebastian Harl <sh@tokkee.org>
Wed, 28 Nov 2012 08:44:59 +0000 (09:44 +0100)
committerSebastian Harl <sh@tokkee.org>
Wed, 28 Nov 2012 08:44:59 +0000 (09:44 +0100)
src/configfile.c

index d6aa72d..064c9a4 100644 (file)
@@ -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;