summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2020-02-27 01:36:34 +0900
committerEvgeny Vereshchagin <evvers@ya.ru>2020-02-27 00:32:33 +0300
commit7c7c44855e2e652781ecbd09f291b7ad5724309b (patch)
tree506b9adb24b8cbef86747f394a68a674b800978b
parent41db91775a1d93077b70cc83ba277a2ebb506297 (diff)
downloadsystemd-7c7c44855e2e652781ecbd09f291b7ad5724309b.tar.gz
userdb: fix memleak
Fixes #14947.
-rw-r--r--src/userdb/userdbctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/userdb/userdbctl.c b/src/userdb/userdbctl.c
index f085eb232c..715f0d236b 100644
--- 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)