]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: don't leak partial_fd
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 20 Aug 2013 22:54:19 +0000 (17:54 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Tue, 20 Aug 2013 22:54:19 +0000 (17:54 -0500)
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxccontainer.c

index f3efb00840251a3d1056219a9c5c6f2e913748d7..facf9a7ec05de036d0736ab4b228b7551f75d7cd 100644 (file)
@@ -1046,14 +1046,14 @@ static bool lxcapi_create(struct lxc_container *c, const char *t,
                exit(0);
        }
        if (wait_for_pid(pid) != 0)
-               goto out;
+               goto out_unlock;
 
        /* reload config to get the rootfs */
        if (c->lxc_conf)
                lxc_conf_free(c->lxc_conf);
        c->lxc_conf = NULL;
        if (!load_config_locked(c, c->configfile))
-               goto out;
+               goto out_unlock;
 
        if (!create_run_template(c, tpath, !!(flags & LXC_CREATE_QUIET), argv))
                goto out_unlock;