From: Christian Brauner Date: Thu, 7 Dec 2017 14:11:16 +0000 (+0100) Subject: coverity: #1425922 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb66857ddaf761c6d943cb6500f90ec0db8983e4;p=thirdparty%2Flxc.git coverity: #1425922 free allocated memory Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 6089e95af..9c7213863 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1748,6 +1748,7 @@ static bool cgfsng_mount(void *hdata, const char *root, int type) path2 = must_make_path(controllerpath, h->base_cgroup, d->container_cgroup, NULL); if (mkdir_p(path2, 0755) < 0) { free(controllerpath); + free(path2); goto bad; }