Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
df5e747d
Unverified
Commit
df5e747d
authored
May 18, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confile: free mount data
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
5a782dca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
confile.c
src/lxc/confile.c
+2
-1
No files found.
src/lxc/confile.c
View file @
df5e747d
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment