From df5e747dc9d389e97ebc5b4dbdbd4d89ba74e0b3 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 1a1873762..6e2b68b1c 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -2786,7 +2786,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; @@ -2802,6 +2802,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) -- 2.47.2