coverity: #1425929

free allocated memory Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 997abfc8
......@@ -816,9 +816,11 @@ 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;
}
......
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