From cf7faeb345bf7af7036b15d89652f5c76039ec44 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 30 Aug 2017 12:26:42 +0200 Subject: [PATCH] confile: remove unnecessary cleanup code set_config_string_item() already free()s before setting the new value. Signed-off-by: Christian Brauner --- src/lxc/confile.c | 3 --- 1 file changed, 3 deletions(-) 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); } -- 2.47.2