Unverified Commit 4faaed33 by Stéphane Graber Committed by GitHub

Merge pull request #2772 from brauner/2018-01-09/fix_cgroup_deletion_stable-3.0

cgfsng: do not free container_full_path on error
parents 0d585e47 6f8a953e
......@@ -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++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment