coverity: #1425747

Resource leak Signed-off-by: 's avatarDonghwa Jeong <dh48.jeong@samsung.com>
parent a810dc80
......@@ -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);
......
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