2
0
mirror of git://github.com/lxc/lxc synced 2025-09-03 16:59:34 +00:00

goto correct cleanup label to ensure fd is closed

Signed-off-by: Dwight Engen <dwight.engen@oracle.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Dwight Engen
2013-04-22 14:02:30 -04:00
committed by Stéphane Graber
parent bbb8a488ae
commit 051151de89

View File

@@ -434,10 +434,10 @@ struct lxc_handler *lxc_init(const char *name, struct lxc_conf *conf, const char
goto out_close_maincmd_fd; 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)) { if (lxc_set_state(name, handler, STARTING)) {
ERROR("failed to set state '%s'", lxc_state2str(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 */ /* Start of environment variable setup for hooks */