Unverified Commit fa0330c9 by Christian Brauner Committed by GitHub

Merge pull request #3028 from lifeng68/fix_memory_leak

start: fix handler memory leak at lxc_init failed
parents c86d1214 39cb2d9e
...@@ -2008,7 +2008,7 @@ int __lxc_start(const char *name, struct lxc_handler *handler, ...@@ -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;
......
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