From 797679c2099666cdb707b58e4edcb6216847d976 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 4 Jun 2018 21:18:28 +0900 Subject: [PATCH] conf-parser: fix memleak (#9177) Fixes CID#1391437. Closes #9180. --- src/shared/conf-parser.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.30.2