]> git.proxmox.com Git - mirror_lxc.git/commitdiff
coverity: #1425747
authorDonghwa Jeong <dh48.jeong@samsung.com>
Mon, 11 Jun 2018 02:24:46 +0000 (11:24 +0900)
committerDonghwa Jeong <dh48.jeong@samsung.com>
Mon, 11 Jun 2018 02:24:46 +0000 (11:24 +0900)
Resource leak

Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
src/lxc/lxccontainer.c

index 1196656b2f896d69e040d832043acebfc455e1d3..4a8a560726e05691a80441ea8113c4e8e6238643 100644 (file)
@@ -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);