mirror of
git://github.com/lxc/lxc
synced 2025-08-31 06:20:12 +00:00
confile: remove unnecessary cleanup code
set_config_string_item() already free()s before setting the new value. Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
@@ -1431,9 +1431,6 @@ static int set_config_cgroup_dir(const char *key, const char *value,
|
||||
if (lxc_config_value_empty(value))
|
||||
return clr_config_cgroup_dir(key, lxc_conf, NULL);
|
||||
|
||||
if (lxc_conf->cgroup_meta.dir)
|
||||
clr_config_cgroup_dir(key, lxc_conf, NULL);
|
||||
|
||||
return set_config_string_item(&lxc_conf->cgroup_meta.dir, value);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user