]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgroup: fix wrong use of cgfd_con in cgroup_exit 3377/head
authorLiFeng <lifeng68@huawei.com>
Mon, 13 Apr 2020 04:52:30 +0000 (12:52 +0800)
committerLiFeng <lifeng68@huawei.com>
Mon, 13 Apr 2020 04:52:30 +0000 (12:52 +0800)
Signed-off-by: LiFeng <lifeng68@huawei.com>
src/lxc/cgroups/cgroup.c

index 37fd0e377d7e2e6135b3496333af58e1617e8a8c..7c94fd83b12a5103e7d562505c043150afefbe19 100644 (file)
@@ -79,7 +79,7 @@ void cgroup_exit(struct cgroup_ops *ops)
                free((*it)->container_base_path);
                free((*it)->container_full_path);
                free((*it)->monitor_full_path);
-               if ((*it)->cgfd_mon >= 0)
+               if ((*it)->cgfd_con >= 0)
                        close((*it)->cgfd_con);
                if ((*it)->cgfd_mon >= 0)
                        close((*it)->cgfd_mon);