mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 15:49:25 +00:00
start: fix handler memory leak at lxc_init failed
Signed-off-by: LiFeng <lifeng68@huawei.com>
This commit is contained in:
parent
c86d12141a
commit
39cb2d9ee8
@ -2008,7 +2008,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;
|
||||||
|
Loading…
Reference in New Issue
Block a user