projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41db917
)
userdb: fix memleak
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 26 Feb 2020 16:36:34 +0000
(
01:36
+0900)
committer
Evgeny Vereshchagin
<evvers@ya.ru>
Wed, 26 Feb 2020 21:32:33 +0000
(
00:32
+0300)
Fixes #14947.
src/userdb/userdbctl.c
patch
|
blob
|
history
diff --git
a/src/userdb/userdbctl.c
b/src/userdb/userdbctl.c
index f085eb232caade567bd1a1c386de33929c950631..715f0d236b8d4a9cc5e363333cd3096439f4b04a 100644
(file)
--- a/
src/userdb/userdbctl.c
+++ b/
src/userdb/userdbctl.c
@@
-699,7
+699,7
@@
static int parse_argv(int argc, char *argv[]) {
if (isempty(optarg))
arg_services = strv_free(arg_services);
else {
-
char **l
;
+
_cleanup_strv_free_ char **l = NULL
;
l = strv_split(optarg, ":");
if (!l)