Unverified Commit 26a37651 by LiFeng Committed by Christian Brauner

start: fix handler memory leak at lxc_init failed

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