Code

sysdbd: Free up the config item returned from the parser as well.
authorSebastian Harl <sh@tokkee.org>
Tue, 22 Apr 2014 18:24:10 +0000 (20:24 +0200)
committerSebastian Harl <sh@tokkee.org>
Tue, 22 Apr 2014 18:24:10 +0000 (20:24 +0200)
oconfig_free() does not do that because it does not correctly keep track of
what the top-level config item is and it cannot free items which are the child
of another.

src/tools/sysdbd/configfile.c

index af733534fda41e741f5b28c86dc8711b8239ce14..25c9404108bef0b61cd0274829bccf539b2762aa 100644 (file)
@@ -299,6 +299,7 @@ daemon_parse_config(const char *filename)
        }
 
        oconfig_free(ci);
+       free(ci);
        return retval;
 } /* daemon_parse_config */