Commit d71d919e by Christian Seiler Committed by Stéphane Graber

Properly cleanup network devices if pinning root filesystem didn't work

parent 675693a5
......@@ -785,7 +785,7 @@ int lxc_spawn(struct lxc_handler *handler)
handler->pinfd = pin_rootfs(handler->conf->rootfs.path);
if (handler->pinfd == -1) {
ERROR("failed to pin the container's rootfs");
goto out_abort;
goto out_delete_net;
}
/* Create a process in a new set of namespaces */
......
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