From 150c191e9d55abbd89490e3eeca3ecf369931600 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 8 Dec 2020 17:22:36 +0100 Subject: [PATCH] confile: cleanup clr_config_log_file() Signed-off-by: Christian Brauner --- src/lxc/confile.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index ad48b23fd..898ff57b1 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -4669,8 +4669,7 @@ static inline int clr_config_log_level(const char *key, struct lxc_conf *c, static inline int clr_config_log_file(const char *key, struct lxc_conf *c, void *data) { - free(c->logfile); - c->logfile = NULL; + free_disarm(c->logfile); return 0; } -- 2.39.5