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
25c10c93
Commit
25c10c93
authored
Jan 26, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stream_out_rtp: fix potential memleak (#2447)
parent
2588f5f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+6
-1
No files found.
modules/stream_out/rtp.c
View file @
25c10c93
...
...
@@ -350,13 +350,15 @@ static int Open( vlc_object_t *p_this )
p_sys
->
i_port
=
var_GetInteger
(
p_stream
,
SOUT_CFG_PREFIX
"port"
);
p_sys
->
i_port_audio
=
var_GetInteger
(
p_stream
,
SOUT_CFG_PREFIX
"port-audio"
);
p_sys
->
i_port_video
=
var_GetInteger
(
p_stream
,
SOUT_CFG_PREFIX
"port-video"
);
p_sys
->
rtcp_mux
=
var_GetBool
(
p_stream
,
SOUT_CFG_PREFIX
"rtcp-mux"
);
p_sys
->
rtcp_mux
=
var_GetBool
(
p_stream
,
SOUT_CFG_PREFIX
"rtcp-mux"
);
p_sys
->
psz_sdp_file
=
NULL
;
if
(
p_sys
->
i_port_audio
&&
p_sys
->
i_port_video
==
p_sys
->
i_port_audio
)
{
msg_Err
(
p_stream
,
"audio and video RTP port must be distinct"
);
free
(
p_sys
->
psz_destination
);
free
(
p_sys
);
return
VLC_EGENERIC
;
}
...
...
@@ -469,6 +471,7 @@ static int Open( vlc_object_t *p_this )
free
(
psz
);
vlc_mutex_destroy
(
&
p_sys
->
lock_sdp
);
vlc_mutex_destroy
(
&
p_sys
->
lock_es
);
free
(
p_sys
->
psz_destination
);
free
(
p_sys
);
return
VLC_EGENERIC
;
}
...
...
@@ -483,6 +486,7 @@ static int Open( vlc_object_t *p_this )
sout_AccessOutDelete
(
p_sys
->
p_grab
);
vlc_mutex_destroy
(
&
p_sys
->
lock_sdp
);
vlc_mutex_destroy
(
&
p_sys
->
lock_es
);
free
(
p_sys
->
psz_destination
);
free
(
p_sys
);
return
VLC_EGENERIC
;
}
...
...
@@ -494,6 +498,7 @@ static int Open( vlc_object_t *p_this )
sout_AccessOutDelete
(
p_sys
->
p_grab
);
vlc_mutex_destroy
(
&
p_sys
->
lock_sdp
);
vlc_mutex_destroy
(
&
p_sys
->
lock_es
);
free
(
p_sys
->
psz_destination
);
free
(
p_sys
);
return
VLC_EGENERIC
;
}
...
...
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