From: Christian Brauner Date: Mon, 7 Jan 2019 15:10:44 +0000 (+0100) Subject: cgfsng: do not free container_full_path on error X-Git-Tag: lxc-3.0.4~273^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2772%2Fhead;p=thirdparty%2Flxc.git cgfsng: do not free container_full_path on error Closes #2741. Signed-off-by: Christian Brauner --- 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++;