Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
682e04fb
Commit
682e04fb
authored
May 31, 2008
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix CID 103 resource leak and added checks for memory return values.
parent
60c3f1af
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
src/input/es_out.c
src/input/es_out.c
+13
-0
No files found.
src/input/es_out.c
View file @
682e04fb
...
@@ -143,6 +143,13 @@ es_out_t *input_EsOutNew( input_thread_t *p_input )
...
@@ -143,6 +143,13 @@ es_out_t *input_EsOutNew( input_thread_t *p_input )
vlc_value_t
val
;
vlc_value_t
val
;
int
i
;
int
i
;
if
(
!
out
)
return
NULL
;
if
(
!
p_sys
)
{
free
(
out
);
return
NULL
;
}
out
->
pf_add
=
EsOutAdd
;
out
->
pf_add
=
EsOutAdd
;
out
->
pf_send
=
EsOutSend
;
out
->
pf_send
=
EsOutSend
;
out
->
pf_del
=
EsOutDel
;
out
->
pf_del
=
EsOutDel
;
...
@@ -485,6 +492,7 @@ static es_out_pgrm_t *EsOutProgramAdd( es_out_t *out, int i_group )
...
@@ -485,6 +492,7 @@ static es_out_pgrm_t *EsOutProgramAdd( es_out_t *out, int i_group )
vlc_value_t
val
;
vlc_value_t
val
;
es_out_pgrm_t
*
p_pgrm
=
malloc
(
sizeof
(
es_out_pgrm_t
)
);
es_out_pgrm_t
*
p_pgrm
=
malloc
(
sizeof
(
es_out_pgrm_t
)
);
if
(
!
p_pgrm
)
return
NULL
;
/* Init */
/* Init */
p_pgrm
->
i_id
=
i_group
;
p_pgrm
->
i_id
=
i_group
;
...
@@ -571,6 +579,8 @@ static void EsOutProgramMeta( es_out_t *out, int i_group, vlc_meta_t *p_meta )
...
@@ -571,6 +579,8 @@ static void EsOutProgramMeta( es_out_t *out, int i_group, vlc_meta_t *p_meta )
char
*
psz_provider
=
NULL
;
char
*
psz_provider
=
NULL
;
int
i
;
int
i
;
if
(
!
psz_cat
)
return
;
msg_Dbg
(
p_input
,
"EsOutProgramMeta: number=%d"
,
i_group
);
msg_Dbg
(
p_input
,
"EsOutProgramMeta: number=%d"
,
i_group
);
sprintf
(
psz_cat
,
"%s %d"
,
_
(
"Program"
),
i_group
);
sprintf
(
psz_cat
,
"%s %d"
,
_
(
"Program"
),
i_group
);
...
@@ -657,9 +667,12 @@ static es_out_id_t *EsOutAdd( es_out_t *out, es_format_t *fmt )
...
@@ -657,9 +667,12 @@ static es_out_id_t *EsOutAdd( es_out_t *out, es_format_t *fmt )
es_out_pgrm_t
*
p_pgrm
=
NULL
;
es_out_pgrm_t
*
p_pgrm
=
NULL
;
int
i
;
int
i
;
if
(
!
es
)
return
NULL
;
if
(
fmt
->
i_group
<
0
)
if
(
fmt
->
i_group
<
0
)
{
{
msg_Err
(
p_input
,
"invalid group number"
);
msg_Err
(
p_input
,
"invalid group number"
);
free
(
es
);
return
NULL
;
return
NULL
;
}
}
...
...
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