From: Yu Watanabe Date: Mon, 4 Jun 2018 12:18:28 +0000 (+0900) Subject: conf-parser: fix memleak (#9177) X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=797679c2099666cdb707b58e4edcb6216847d976;p=elogind.git conf-parser: fix memleak (#9177) Fixes CID#1391437. Closes #9180. --- 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);