]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix leak of netnsfd in recent commit
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Sat, 8 Mar 2014 02:38:20 +0000 (20:38 -0600)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Sat, 8 Mar 2014 02:38:20 +0000 (20:38 -0600)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/start.c

index bae01e49c33cc93ef2c38688d9d058a3b9266b23..68982db40856b288cbf2239f245329a51840b97a 100644 (file)
@@ -1058,6 +1058,7 @@ int __lxc_start(const char *name, struct lxc_conf *conf,
        err = lxc_poll(name, handler);
        if (err) {
                ERROR("mainloop exited with an error");
+               close(netnsfd);
                goto out_abort;
        }