Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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
vlc-2-2
Commits
dd090fbc
Commit
dd090fbc
authored
Nov 14, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udp: memory leak
(cherry picked from commit 00b9dd8cbcd4ccd466a28d4f3fa2b7b605ca6276)
parent
13d9684a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
modules/access/udp.c
modules/access/udp.c
+8
-6
No files found.
modules/access/udp.c
View file @
dd090fbc
...
...
@@ -90,12 +90,6 @@ static void* ThreadRead( void *data );
static
int
Open
(
vlc_object_t
*
p_this
)
{
access_t
*
p_access
=
(
access_t
*
)
p_this
;
char
*
psz_name
=
strdup
(
p_access
->
psz_location
);
char
*
psz_parser
;
const
char
*
psz_server_addr
,
*
psz_bind_addr
=
""
;
int
i_bind_port
=
1234
,
i_server_port
=
0
;
access_sys_t
*
sys
=
malloc
(
sizeof
(
*
sys
)
);
if
(
unlikely
(
sys
==
NULL
)
)
return
VLC_ENOMEM
;
...
...
@@ -106,6 +100,14 @@ static int Open( vlc_object_t *p_this )
access_InitFields
(
p_access
);
ACCESS_SET_CALLBACKS
(
NULL
,
BlockUDP
,
Control
,
NULL
);
char
*
psz_name
=
strdup
(
p_access
->
psz_location
);
char
*
psz_parser
;
const
char
*
psz_server_addr
,
*
psz_bind_addr
=
""
;
int
i_bind_port
=
1234
,
i_server_port
=
0
;
if
(
unlikely
(
psz_name
==
NULL
)
)
goto
error
;
/* Parse psz_name syntax :
* [serveraddr[:serverport]][@[bindaddr]:[bindport]] */
psz_parser
=
strchr
(
psz_name
,
'@'
);
...
...
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