]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgfsng: do not free container_full_path on error 2772/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 7 Jan 2019 15:10:44 +0000 (16:10 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 7 Jan 2019 15:10:44 +0000 (16:10 +0100)
Closes #2741.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index acc6c309148cb73d64e3621b0d1d42d0858e0d34..7ba724e4852b12c487615677e9b648469e989e7b 100644 (file)
@@ -1319,8 +1319,6 @@ again:
                if (!create_path_for_hierarchy(ops->hierarchies[i], container_cgroup)) {
                        int j;
                        ERROR("Failed to create cgroup \"%s\"", ops->hierarchies[i]->container_full_path);
-                       free(ops->hierarchies[i]->container_full_path);
-                       ops->hierarchies[i]->container_full_path = NULL;
                        for (j = 0; j < i; j++)
                                remove_path_for_hierarchy(ops->hierarchies[j], container_cgroup);
                        idx++;