From: Christian Seiler Date: Mon, 18 Mar 2013 19:06:30 +0000 (+0100) Subject: Properly cleanup network devices if pinning root filesystem didn't work X-Git-Tag: lxc-0.9.0~1^2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d71d919efbd9b1e7d7b1c51ff9f809f94aedaff3;p=thirdparty%2Flxc.git Properly cleanup network devices if pinning root filesystem didn't work Signed-off-by: Christian Seiler Acked-by: Serge E. Hallyn --- 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 */