projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
312fe35
)
conf-parser: fix memleak (#9177)
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Mon, 4 Jun 2018 12:18:28 +0000
(21:18 +0900)
committer
Evgeny Vereshchagin
<evvers@ya.ru>
Mon, 4 Jun 2018 12:18:28 +0000
(15:18 +0300)
Fixes CID#1391437.
Closes #9180.
src/shared/conf-parser.c
patch
|
blob
|
history
diff --git
a/src/shared/conf-parser.c
b/src/shared/conf-parser.c
index
8dc35d4
..
4ad83b8
100644
(file)
--- a/
src/shared/conf-parser.c
+++ b/
src/shared/conf-parser.c
@@
-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);