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
9dffc40e
Unverified
Commit
9dffc40e
authored
Feb 26, 2021
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
confile_utils: ensure memory is zeroed
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
071d0934
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
confile_utils.c
src/lxc/confile_utils.c
+2
-2
No files found.
src/lxc/confile_utils.c
View file @
9dffc40e
...
@@ -165,7 +165,7 @@ struct lxc_netdev *lxc_network_add(struct lxc_list *networks, int idx, bool tail
...
@@ -165,7 +165,7 @@ struct lxc_netdev *lxc_network_add(struct lxc_list *networks, int idx, bool tail
__do_free
struct
lxc_netdev
*
netdev
=
NULL
;
__do_free
struct
lxc_netdev
*
netdev
=
NULL
;
/* network does not exist */
/* network does not exist */
netdev
=
m
alloc
(
sizeof
(
*
netdev
));
netdev
=
z
alloc
(
sizeof
(
*
netdev
));
if
(
!
netdev
)
if
(
!
netdev
)
return
ret_set_errno
(
NULL
,
ENOMEM
);
return
ret_set_errno
(
NULL
,
ENOMEM
);
...
@@ -177,7 +177,7 @@ struct lxc_netdev *lxc_network_add(struct lxc_list *networks, int idx, bool tail
...
@@ -177,7 +177,7 @@ struct lxc_netdev *lxc_network_add(struct lxc_list *networks, int idx, bool tail
netdev
->
idx
=
idx
;
netdev
->
idx
=
idx
;
/* prepare new list */
/* prepare new list */
newlist
=
m
alloc
(
sizeof
(
*
newlist
));
newlist
=
z
alloc
(
sizeof
(
*
newlist
));
if
(
!
newlist
)
if
(
!
newlist
)
return
ret_set_errno
(
NULL
,
ENOMEM
);
return
ret_set_errno
(
NULL
,
ENOMEM
);
...
...
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