]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
userdb: fix memleak
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 26 Feb 2020 16:36:34 +0000 (01:36 +0900)
committerEvgeny Vereshchagin <evvers@ya.ru>
Wed, 26 Feb 2020 21:32:33 +0000 (00:32 +0300)
Fixes #14947.

src/userdb/userdbctl.c

index f085eb232caade567bd1a1c386de33929c950631..715f0d236b8d4a9cc5e363333cd3096439f4b04a 100644 (file)
@@ -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)