Code

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 d6aa72de679646d14658504cbfa34f716252ef2a..064c9a4053640200aff1363cc0daee16e3783e60 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;