Unverified Commit d33bb0fe by Wolfgang Bumiller Committed by Stéphane Graber

Revert "start: remove unnecessary check for valid cgroup_ops"

This reverts commit 52520e4f. This can be NULL when there's a pre-start hook which fails. Signed-off-by: 's avatarWolfgang Bumiller <w.bumiller@proxmox.com>
parent 7e67b81d
......@@ -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.
......
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