]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup set_config_log_file()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 13:51:22 +0000 (14:51 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 14:40:49 +0000 (15:40 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 89029c22ce3497d1d56ddba9a366fbeea1b62046..4854acee415aa40a6cd8d0256db853e1e6f03c29 100644 (file)
@@ -1548,12 +1548,12 @@ static int set_config_log_file(const char *key, const char *value,
        int ret;
 
        if (lxc_config_value_empty(value)) {
-               free(c->logfile);
-               c->logfile = NULL;
+               free_disarm(c->logfile);
                return 0;
        }
 
-       /* Store these values in the lxc_conf, and then try to set for actual
+       /*
+        * Store these values in the lxc_conf, and then try to set for actual
         * current logging.
         */
        ret = set_config_path_item(&c->logfile, value);