From: Sebastian Harl Date: Tue, 22 Apr 2014 18:24:10 +0000 (+0200) Subject: sysdbd: Free up the config item returned from the parser as well. X-Git-Tag: sysdb-0.1.0~99 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=96d54e66bfc2817adaf38db30a24aa8aa5abedac;p=sysdb.git sysdbd: Free up the config item returned from the parser as well. 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. --- diff --git a/src/tools/sysdbd/configfile.c b/src/tools/sysdbd/configfile.c index af73353..25c9404 100644 --- a/src/tools/sysdbd/configfile.c +++ b/src/tools/sysdbd/configfile.c @@ -299,6 +299,7 @@ daemon_parse_config(const char *filename) } oconfig_free(ci); + free(ci); return retval; } /* daemon_parse_config */