From: Christian Brauner Date: Tue, 18 May 2021 18:23:17 +0000 (+0200) Subject: confile: free mount data X-Git-Tag: lxc-5.0.0~167^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df5e747dc9d389e97ebc5b4dbdbd4d89ba74e0b3;p=thirdparty%2Flxc.git confile: free mount data Signed-off-by: Christian Brauner --- 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)