coverity: #1425929

free allocated memory Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent d2f82ed6
......@@ -821,10 +821,12 @@ static bool do_lxcapi_start(struct lxc_container *c, int useinit, char * const a
/* ... otherwise use default_args. */
if (!argv) {
if (useinit)
if (useinit) {
ERROR("No valid init detected");
lxc_free_handler(handler);
return false;
else
argv = default_args;
}
argv = default_args;
}
/* I'm not sure what locks we want here.Any? Is liblxc's locking enough
......
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