From: Christian Brauner Date: Wed, 30 Aug 2017 10:26:42 +0000 (+0200) Subject: confile: remove unnecessary cleanup code X-Git-Tag: lxc-2.1.0~13^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1769%2Fhead;p=thirdparty%2Flxc.git confile: remove unnecessary cleanup code set_config_string_item() already free()s before setting the new value. Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 62337289e..e66bae314 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -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); }