From 39cb2d9ee8f07cfe885defc9794d14799923aa0c Mon Sep 17 00:00:00 2001 From: LiFeng Date: Wed, 5 Jun 2019 00:44:17 -0400 Subject: [PATCH] start: fix handler memory leak at lxc_init failed Signed-off-by: LiFeng --- src/lxc/start.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index 51969697e..d6477fd1f 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -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;