confile: free mount data

parent 5a782dca
...@@ -2786,7 +2786,7 @@ static int set_config_rootfs_mount(const char *key, const char *value, ...@@ -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, static int set_config_rootfs_options(const char *key, const char *value,
struct lxc_conf *lxc_conf, void *data) 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_rootfs *rootfs = &lxc_conf->rootfs;
struct lxc_mount_options *mnt_opts = &rootfs->mnt_opts; struct lxc_mount_options *mnt_opts = &rootfs->mnt_opts;
int ret; int ret;
...@@ -2802,6 +2802,7 @@ static int set_config_rootfs_options(const char *key, const char *value, ...@@ -2802,6 +2802,7 @@ static int set_config_rootfs_options(const char *key, const char *value,
ret = parse_lxc_mount_attrs(mnt_opts, dup); ret = parse_lxc_mount_attrs(mnt_opts, dup);
if (ret < 0) if (ret < 0)
return ret; return ret;
__data = mnt_opts->data;
ret = parse_mntopts_legacy(dup, &mnt_opts->mnt_flags, &mdata); ret = parse_mntopts_legacy(dup, &mnt_opts->mnt_flags, &mdata);
if (ret < 0) if (ret < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment