From: Christian Brauner Date: Tue, 8 Dec 2020 16:23:19 +0000 (+0100) Subject: confile: cleanup clr_config_rootfs_path() X-Git-Tag: lxc-5.0.0~330^2~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad16f12dcc9beca9609d681ab2f0e7bba76e93bc;p=thirdparty%2Flxc.git confile: cleanup clr_config_rootfs_path() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 22347ae57..d1ef12fb3 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -4695,8 +4695,7 @@ static inline int clr_config_mount_fstab(const char *key, struct lxc_conf *c, static inline int clr_config_rootfs_path(const char *key, struct lxc_conf *c, void *data) { - free(c->rootfs.path); - c->rootfs.path = NULL; + free_disarm(c->rootfs.path); return 0; }