From: Serge Hallyn Date: Tue, 20 Aug 2013 22:54:19 +0000 (-0500) Subject: coverity: don't leak partial_fd X-Git-Tag: lxc-1.0.0.alpha1~1^2~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a09295f841be8add0cbfc2932c59535f0d1365ed;p=thirdparty%2Flxc.git coverity: don't leak partial_fd Signed-off-by: Serge Hallyn --- diff --git a/src/lxc/lxccontainer.c b/src/lxc/lxccontainer.c index f3efb0084..facf9a7ec 100644 --- a/src/lxc/lxccontainer.c +++ b/src/lxc/lxccontainer.c @@ -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;