Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
ceb021fb
Commit
ceb021fb
authored
Jun 17, 2020
by
Antonin Décimo
Committed by
Juliusz Chroboczek
May 30, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix double-free in error path.
Introduced by 3b3813fad09eb694a508789394679b6d3378d472.
parent
1e08aedf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
configuration.c
configuration.c
+1
-2
No files found.
configuration.c
View file @
ceb021fb
...
@@ -721,7 +721,7 @@ static int
...
@@ -721,7 +721,7 @@ static int
parse_ifconf
(
int
c
,
gnc_t
gnc
,
void
*
closure
,
parse_ifconf
(
int
c
,
gnc_t
gnc
,
void
*
closure
,
struct
interface_conf
**
if_conf_return
)
struct
interface_conf
**
if_conf_return
)
{
{
char
*
token
=
NULL
;
char
*
token
;
struct
interface_conf
*
if_conf
;
struct
interface_conf
*
if_conf
;
if_conf
=
calloc
(
1
,
sizeof
(
struct
interface_conf
));
if_conf
=
calloc
(
1
,
sizeof
(
struct
interface_conf
));
...
@@ -743,7 +743,6 @@ parse_ifconf(int c, gnc_t gnc, void *closure,
...
@@ -743,7 +743,6 @@ parse_ifconf(int c, gnc_t gnc, void *closure,
return
parse_anonymous_ifconf
(
c
,
gnc
,
closure
,
if_conf
,
if_conf_return
);
return
parse_anonymous_ifconf
(
c
,
gnc
,
closure
,
if_conf
,
if_conf_return
);
error:
error:
free
(
token
);
free
(
if_conf
);
free
(
if_conf
);
return
-
2
;
return
-
2
;
}
}
...
...
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