start: fix handler memory leak at lxc_init failed

Signed-off-by: LiFeng <lifeng68@huawei.com>
This commit is contained in:
LiFeng 2019-06-05 00:44:17 -04:00
parent c86d12141a
commit 39cb2d9ee8

View File

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