From 2bcca48c912d0eb6d06232f67f6e6d30ae92d697 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Thu, 7 Dec 2017 15:17:11 +0100 Subject: [PATCH] coverity: #1425895 free allocated memory Signed-off-by: Christian Brauner --- src/lxc/cgroups/cgfsng.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 144c3b668..4049f23f1 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -517,6 +517,7 @@ static bool filter_and_set_cpus(char *path, bool am_initialized) copy_parent: *lastslash = oldv; + free(fpath); fpath = must_make_path(path, "cpuset.cpus", NULL); ret = lxc_write_to_file(fpath, cpulist, strlen(cpulist), false); if (ret < 0) { -- 2.47.2