confile: cleanup clr_config_cgroup_dir()

parent b60c8dd9
...@@ -4607,10 +4607,8 @@ static inline int clr_config_cgroup2_controller(const char *key, ...@@ -4607,10 +4607,8 @@ static inline int clr_config_cgroup2_controller(const char *key,
static int clr_config_cgroup_dir(const char *key, struct lxc_conf *lxc_conf, static int clr_config_cgroup_dir(const char *key, struct lxc_conf *lxc_conf,
void *data) void *data)
{ {
if (lxc_conf->cgroup_meta.dir) { if (lxc_conf->cgroup_meta.dir)
free(lxc_conf->cgroup_meta.dir); free_disarm(lxc_conf->cgroup_meta.dir);
lxc_conf->cgroup_meta.dir = NULL;
}
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment