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
6453ba56
Unverified
Commit
6453ba56
authored
Jul 23, 2019
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tree-wide: initialize all auto-cleanup variables
Closes: #3101. Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
5c338ef4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
cgfsng.c
src/lxc/cgroups/cgfsng.c
+1
-1
confile.c
src/lxc/confile.c
+3
-3
No files found.
src/lxc/cgroups/cgfsng.c
View file @
6453ba56
...
@@ -1260,7 +1260,7 @@ static int mkdir_eexist_on_last(const char *dir, mode_t mode)
...
@@ -1260,7 +1260,7 @@ static int mkdir_eexist_on_last(const char *dir, mode_t mode)
orig_len
=
strlen
(
dir
);
orig_len
=
strlen
(
dir
);
do
{
do
{
__do_free
char
*
makeme
;
__do_free
char
*
makeme
=
NULL
;
int
ret
;
int
ret
;
size_t
cur_len
;
size_t
cur_len
;
...
...
src/lxc/confile.c
View file @
6453ba56
...
@@ -909,9 +909,9 @@ static int set_config_net_ipv6_gateway(const char *key, const char *value,
...
@@ -909,9 +909,9 @@ static int set_config_net_ipv6_gateway(const char *key, const char *value,
static
int
set_config_net_veth_ipv6_route
(
const
char
*
key
,
const
char
*
value
,
static
int
set_config_net_veth_ipv6_route
(
const
char
*
key
,
const
char
*
value
,
struct
lxc_conf
*
lxc_conf
,
void
*
data
)
struct
lxc_conf
*
lxc_conf
,
void
*
data
)
{
{
__do_free
char
*
valdup
;
__do_free
char
*
valdup
=
NULL
;
__do_free
struct
lxc_inet6dev
*
inet6dev
;
__do_free
struct
lxc_inet6dev
*
inet6dev
=
NULL
;
__do_free
struct
lxc_list
*
list
;
__do_free
struct
lxc_list
*
list
=
NULL
;
int
ret
;
int
ret
;
char
*
netmask
,
*
slash
;
char
*
netmask
,
*
slash
;
struct
lxc_netdev
*
netdev
=
data
;
struct
lxc_netdev
*
netdev
=
data
;
...
...
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