Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dvblast
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
dvblast
Commits
ca663870
Commit
ca663870
authored
Nov 02, 2010
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* dvblast.c: Fix a double free().
parent
caa5a5a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
dvblast.c
dvblast.c
+2
-6
No files found.
dvblast.c
View file @
ca663870
...
...
@@ -149,12 +149,12 @@ bool config_ParseHost( output_config_t *p_config, char *psz_string )
p_config
->
psz_displayname
=
strdup
(
psz_string
);
p_ai
=
ParseNodeService
(
psz_string
,
&
psz_string
,
DEFAULT_PORT
);
if
(
p_ai
==
NULL
)
goto
err
;
if
(
p_ai
==
NULL
)
return
false
;
memcpy
(
&
p_config
->
connect_addr
,
p_ai
->
ai_addr
,
p_ai
->
ai_addrlen
);
freeaddrinfo
(
p_ai
);
p_config
->
i_family
=
p_config
->
connect_addr
.
ss_family
;
if
(
p_config
->
i_family
==
AF_UNSPEC
)
goto
err
;
if
(
p_config
->
i_family
==
AF_UNSPEC
)
return
false
;
if
(
psz_string
==
NULL
||
!*
psz_string
)
goto
end
;
...
...
@@ -223,10 +223,6 @@ end:
}
return
true
;
err:
free
(
p_config
->
psz_displayname
);
return
false
;
}
static
void
config_Print
(
output_config_t
*
p_config
)
...
...
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