Commit b2431939 by Greg Kurz Committed by Daniel Lezcano

lxc: remove useless check

The handler argument to lxc_fini() is never null. Signed-off-by: 's avatarGreg Kurz <gkurz@fr.ibm.com> Signed-off-by: 's avatarCedric Le Goater <clg@fr.ibm.com> Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent b79fcd86
......@@ -288,10 +288,8 @@ void lxc_fini(const char *name, struct lxc_handler *handler)
lxc_set_state(name, handler, STOPPED);
lxc_unlink_nsgroup(name);
if (handler) {
lxc_delete_tty(&handler->conf->tty_info);
free(handler);
}
lxc_delete_tty(&handler->conf->tty_info);
free(handler);
LXC_TTY_DEL_HANDLER(SIGQUIT);
LXC_TTY_DEL_HANDLER(SIGINT);
......
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