]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroups: initialize variable 3643/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 1 Feb 2021 14:44:59 +0000 (15:44 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 1 Feb 2021 14:44:59 +0000 (15:44 +0100)
Fixes: Coverity 1472651
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 7e39a8fd7fabf14c20875de6dc58640869fb7626..f1b953e46ef688fcbc73d898823e572a35beaa00 100644 (file)
@@ -3337,7 +3337,7 @@ static int cg_unified_init(struct cgroup_ops *ops, bool relative,
 {
        __do_close int cgroup_root_fd = -EBADF;
        __do_free char *base_cgroup = NULL, *controllers_path = NULL;
-       __do_free_string_list char **delegatable;
+       __do_free_string_list char **delegatable = NULL;
        __do_free struct hierarchy *new = NULL;
        int ret;