]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: remove unnecessary cleanup code 1769/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 30 Aug 2017 10:26:42 +0000 (12:26 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 30 Aug 2017 10:26:42 +0000 (12:26 +0200)
set_config_string_item() already free()s before setting the new value.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 62337289e9b4a84e3aa117d507a270895e2ef673..e66bae314ed886089ac083f61d722a34c6c3d88c 100644 (file)
@@ -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);
 }