mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-03 11:33:49 +00:00
Merge pull request #3352 from Blub/readd-cgroup-ops-check
Revert "start: remove unnecessary check for valid cgroup_ops"
This commit is contained in:
commit
514b0270ce
@ -933,8 +933,10 @@ void lxc_end(struct lxc_handler *handler)
|
||||
|
||||
lsm_process_cleanup(handler->conf, handler->lxcpath);
|
||||
|
||||
cgroup_ops->payload_destroy(cgroup_ops, handler);
|
||||
cgroup_ops->monitor_destroy(cgroup_ops, handler);
|
||||
if (cgroup_ops) {
|
||||
cgroup_ops->payload_destroy(cgroup_ops, handler);
|
||||
cgroup_ops->monitor_destroy(cgroup_ops, handler);
|
||||
}
|
||||
|
||||
if (handler->conf->reboot == REBOOT_NONE) {
|
||||
/* For all new state clients simply close the command socket.
|
||||
|
Loading…
Reference in New Issue
Block a user