diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-06-04 21:18:28 +0900 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | 797679c2099666cdb707b58e4edcb6216847d976 (patch) | |
tree | 5bcfc9266dd25d76e2e0c783a07ae68ea36873d4 | |
parent | 74102fa68ea25cd7e8914f112f357760130728fb (diff) |
conf-parser: fix memleak (#9177)
Fixes CID#1391437.
Closes #9180.
-rw-r--r-- | src/shared/conf-parser.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/conf-parser.c b/src/shared/conf-parser.c index a43e595cc..c875a6771 100644 --- a/src/shared/conf-parser.c +++ b/src/shared/conf-parser.c @@ -46,6 +46,7 @@ //#include "rlimit-util.h" //#include "rlimit-util.h" //#include "rlimit-util.h" +//#include "rlimit-util.h" int config_item_table_lookup( const void *table, @@ -728,8 +729,9 @@ int config_parse_path( void *data, void *userdata) { - char **s = data, *n; + _cleanup_free_ char *n = NULL; bool fatal = ltype; + char **s = data; int r; assert(filename); |