diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 17d0740d1..1246c8f98 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -820,6 +820,7 @@ static struct hierarchy *add_hierarchy(struct hierarchy ***h, char **clist, char new->mountpoint = mountpoint; new->container_base_path = container_base_path; new->container_full_path = NULL; + new->monitor_full_path = NULL; new->version = type; newentry = append_null_to_list((void ***)h); diff --git a/src/lxc/cgroups/cgroup.c b/src/lxc/cgroups/cgroup.c index de602d04e..cf81f3edb 100644 --- a/src/lxc/cgroups/cgroup.c +++ b/src/lxc/cgroups/cgroup.c @@ -88,6 +88,7 @@ void cgroup_exit(struct cgroup_ops *ops) free((*it)->mountpoint); free((*it)->container_base_path); free((*it)->container_full_path); + free((*it)->monitor_full_path); free(*it); } free(ops->hierarchies); diff --git a/src/lxc/cgroups/cgroup.h b/src/lxc/cgroups/cgroup.h index d79508362..d3f834c4c 100644 --- a/src/lxc/cgroups/cgroup.h +++ b/src/lxc/cgroups/cgroup.h @@ -65,6 +65,9 @@ typedef enum { * @container_full_path * - The full path to the containers cgroup. * + * @monitor_full_path + * - The full path to the monitor's cgroup. + * * @version * - legacy hierarchy * If the hierarchy is a legacy hierarchy this will be set to @@ -78,6 +81,7 @@ struct hierarchy { char *mountpoint; char *container_base_path; char *container_full_path; + char *monitor_full_path; int version; };