From d71d919efbd9b1e7d7b1c51ff9f809f94aedaff3 Mon Sep 17 00:00:00 2001 From: Christian Seiler Date: Mon, 18 Mar 2013 20:06:30 +0100 Subject: [PATCH] Properly cleanup network devices if pinning root filesystem didn't work Signed-off-by: Christian Seiler Acked-by: Serge E. Hallyn --- src/lxc/start.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index 6613f3531..fd3ad7b3a 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -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 */ -- 2.47.2