From: Donghwa Jeong Date: Mon, 11 Jun 2018 02:24:46 +0000 (+0900) Subject: coverity: #1425747 X-Git-Tag: lxc-3.1.0~258^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f55c74292c5789bde980e2a2fbb2599c26bfa02;p=thirdparty%2Flxc.git coverity: #1425747 Resource leak Signed-off-by: Donghwa Jeong --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index 1196656b2..4a8a56072 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -1384,7 +1384,7 @@ static bool create_run_template(struct lxc_container *c, char *tpath, ret = mount(src, bdev->dest, "bind", MS_BIND | MS_REC, NULL); if (ret < 0) { ERROR("Failed to mount rootfs"); - return -1; + _exit(EXIT_FAILURE); } } else { ret = bdev->ops->mount(bdev);