Skip to content

Commit

Permalink
Merge pull request #3352 from Blub/readd-cgroup-ops-check
Browse files Browse the repository at this point in the history
Revert "start: remove unnecessary check for valid cgroup_ops"
  • Loading branch information
Christian Brauner committed Apr 3, 2020
2 parents 2235ad6 + e2aed38 commit 514b027
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lxc/start.c
Expand Up @@ -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.
Expand Down

0 comments on commit 514b027

Please sign in to comment.