Unverified Commit 051151de by Dwight Engen Committed by Stéphane Graber

goto correct cleanup label to ensure fd is closed

parent bbb8a488
...@@ -434,10 +434,10 @@ struct lxc_handler *lxc_init(const char *name, struct lxc_conf *conf, const char ...@@ -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 */
......
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