Commit 39cb2d9e by LiFeng

start: fix handler memory leak at lxc_init failed

Signed-off-by: 's avatarLiFeng <lifeng68@huawei.com>
parent c86d1214
......@@ -2008,7 +2008,7 @@ int __lxc_start(const char *name, struct lxc_handler *handler,
ret = lxc_init(name, handler);
if (ret < 0) {
ERROR("Failed to initialize container \"%s\"", name);
return -1;
goto out_fini_nonet;
}
handler->ops = ops;
handler->data = data;
......
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