]> git.proxmox.com Git - mirror_lxc.git/commitdiff
goto correct cleanup label to ensure fd is closed
authorDwight Engen <dwight.engen@oracle.com>
Mon, 22 Apr 2013 18:02:30 +0000 (14:02 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 23 Apr 2013 11:49:06 +0000 (13:49 +0200)
Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/start.c

index aefccd6505008dc7681f90d5b271287ebd13f1b5..0a0cc40f752557986d211ac8abf08b2b1b9b288e 100644 (file)
@@ -434,10 +434,10 @@ struct lxc_handler *lxc_init(const char *name, struct lxc_conf *conf, const char
                goto out_close_maincmd_fd;
        }
 
-       /* Begin the set the state to STARTING*/
+       /* Begin by setting the state to STARTING */
        if (lxc_set_state(name, handler, STARTING)) {
                ERROR("failed to set state '%s'", lxc_state2str(STARTING));
-               goto out_free_name;
+               goto out_close_maincmd_fd;
        }
 
        /* Start of environment variable setup for hooks */