From: Christian Brauner Date: Thu, 7 Dec 2017 14:11:16 +0000 (+0100) Subject: coverity: #1425922 X-Git-Tag: lxc-2.0.10~500 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e89919e383f85edc6b5f3a62e4cd884cb3451645;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 4c7df358a..144c3b668 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -1721,6 +1721,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; }