Commit 94a18c83 by Serge Hallyn

fix leak of netnsfd in recent commit

parent 1fc64d22
...@@ -1058,6 +1058,7 @@ int __lxc_start(const char *name, struct lxc_conf *conf, ...@@ -1058,6 +1058,7 @@ int __lxc_start(const char *name, struct lxc_conf *conf,
err = lxc_poll(name, handler); err = lxc_poll(name, handler);
if (err) { if (err) {
ERROR("mainloop exited with an error"); ERROR("mainloop exited with an error");
close(netnsfd);
goto out_abort; goto out_abort;
} }
......
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