From: LiFeng Date: Mon, 13 Apr 2020 04:52:30 +0000 (+0800) Subject: cgroup: fix wrong use of cgfd_con in cgroup_exit X-Git-Tag: lxc-5.0.0~455^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5305cd4e7aec7310ae081a04a93d77b649bce8d8;p=thirdparty%2Flxc.git cgroup: fix wrong use of cgfd_con in cgroup_exit Signed-off-by: LiFeng --- diff --git a/src/lxc/cgroups/cgroup.c b/src/lxc/cgroups/cgroup.c index 37fd0e377..7c94fd83b 100644 --- a/src/lxc/cgroups/cgroup.c +++ b/src/lxc/cgroups/cgroup.c @@ -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);