From: Christian Brauner Date: Tue, 8 Dec 2020 16:24:42 +0000 (+0100) Subject: confile: cleanup clr_config_console_path() X-Git-Tag: lxc-5.0.0~330^2~105 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ed97e6fb45f0d6358003877dbe6655674e68709;p=thirdparty%2Flxc.git confile: cleanup clr_config_console_path() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 3d007d38f..dd082b383 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -4766,8 +4766,7 @@ static inline int clr_config_cap_keep(const char *key, struct lxc_conf *c, static inline int clr_config_console_path(const char *key, struct lxc_conf *c, void *data) { - free(c->console.path); - c->console.path = NULL; + free_disarm(c->console.path); return 0; }