mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 12:37:35 +00:00
Merge pull request #3028 from lifeng68/fix_memory_leak
start: fix handler memory leak at lxc_init failed
This commit is contained in:
commit
fa0330c9c0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user