Merge pull request #3028 from lifeng68/fix_memory_leak

start: fix handler memory leak at lxc_init failed
This commit is contained in:
Christian Brauner 2019-06-05 06:56:17 +02:00 committed by GitHub
commit fa0330c9c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;