From: Yu Watanabe Date: Wed, 26 Feb 2020 16:36:34 +0000 (+0900) Subject: userdb: fix memleak X-Git-Tag: v245-rc2~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7c7c44855e2e652781ecbd09f291b7ad5724309b;p=thirdparty%2Fsystemd.git userdb: fix memleak Fixes #14947. --- diff --git a/src/userdb/userdbctl.c b/src/userdb/userdbctl.c index f085eb232ca..715f0d236b8 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)