diff --git a/src/lxc/start.c b/src/lxc/start.c index 9d800e30b..a25bd0409 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -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.