From 6f8a953ea815d4403b9d43dcf0beb2e2787c1918 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Mon, 7 Jan 2019 16:10:44 +0100 Subject: [PATCH] cgfsng: do not free container_full_path on error Closes #2741. Signed-off-by: Christian Brauner --- src/lxc/cgroups/cgfsng.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index acc6c3091..7ba724e48 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -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++; -- 2.47.3