From 08eab8c0057ecbad9320dd3a5bdd90fac0efe619 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Tue, 18 May 2021 20:23:17 +0200 Subject: [PATCH] confile: free mount data Signed-off-by: Christian Brauner --- src/lxc/confile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 6623fb60e4..76d9402626 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -2582,7 +2582,7 @@ static int set_config_rootfs_mount(const char *key, const char *value, static int set_config_rootfs_options(const char *key, const char *value, struct lxc_conf *lxc_conf, void *data) { - __do_free char *dup = NULL, *mdata = NULL, *opts = NULL; + __do_free char *__data = NULL, *dup = NULL, *mdata = NULL, *opts = NULL; struct lxc_rootfs *rootfs = &lxc_conf->rootfs; struct lxc_mount_options *mnt_opts = &rootfs->mnt_opts; int ret; @@ -2598,6 +2598,7 @@ static int set_config_rootfs_options(const char *key, const char *value, ret = parse_lxc_mount_attrs(mnt_opts, dup); if (ret < 0) return ret; + __data = mnt_opts->data; ret = parse_mntopts_legacy(dup, &mnt_opts->mnt_flags, &mdata); if (ret < 0)