conf-parser: fix memleak (#9177)

Fixes CID#1391437.

Closes #9180.
This commit is contained in:
Yu Watanabe 2018-06-04 21:18:28 +09:00 committed by Evgeny Vereshchagin
parent 312fe35a57
commit c0d72c4313
1 changed files with 2 additions and 1 deletions

View File

@ -706,8 +706,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);