Skip to content

Commit

Permalink
cgroup: fix wrong use of cgfd_con in cgroup_exit
Browse files Browse the repository at this point in the history
Signed-off-by: LiFeng <lifeng68@huawei.com>
  • Loading branch information
lifeng68 authored and stgraber committed Apr 14, 2020
1 parent a772323 commit 4a24848
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/cgroups/cgroup.c
Expand Up @@ -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);
Expand Down

0 comments on commit 4a24848

Please sign in to comment.