Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
303e9b54
Commit
303e9b54
authored
Aug 03, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memleak and bad use of a const variable.
parent
9f151876
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/misc/filter_chain.c
src/misc/filter_chain.c
+5
-2
No files found.
src/misc/filter_chain.c
View file @
303e9b54
...
@@ -214,10 +214,11 @@ static int filter_chain_AppendFromStringInternal( filter_chain_t *p_chain,
...
@@ -214,10 +214,11 @@ static int filter_chain_AppendFromStringInternal( filter_chain_t *p_chain,
{
{
config_chain_t
*
p_cfg
=
NULL
;
config_chain_t
*
p_cfg
=
NULL
;
char
*
psz_name
=
NULL
;
char
*
psz_name
=
NULL
;
char
*
psz_new_string
;
if
(
!
psz_string
||
!*
psz_string
)
return
0
;
if
(
!
psz_string
||
!*
psz_string
)
return
0
;
psz_string
=
config_ChainCreate
(
&
psz_name
,
&
p_cfg
,
psz_string
);
psz_
new_
string
=
config_ChainCreate
(
&
psz_name
,
&
p_cfg
,
psz_string
);
filter_t
*
p_filter
=
filter_chain_AppendFilterInternal
(
p_chain
,
psz_name
,
filter_t
*
p_filter
=
filter_chain_AppendFilterInternal
(
p_chain
,
psz_name
,
p_cfg
,
NULL
,
NULL
);
p_cfg
,
NULL
,
NULL
);
...
@@ -227,11 +228,13 @@ static int filter_chain_AppendFromStringInternal( filter_chain_t *p_chain,
...
@@ -227,11 +228,13 @@ static int filter_chain_AppendFromStringInternal( filter_chain_t *p_chain,
"to filter chain"
,
psz_name
);
"to filter chain"
,
psz_name
);
free
(
psz_name
);
free
(
psz_name
);
free
(
p_cfg
);
free
(
p_cfg
);
free
(
psz_new_string
);
return
-
1
;
return
-
1
;
}
}
free
(
psz_name
);
free
(
psz_name
);
int
ret
=
filter_chain_AppendFromStringInternal
(
p_chain
,
psz_string
);
int
ret
=
filter_chain_AppendFromStringInternal
(
p_chain
,
psz_new_string
);
free
(
psz_new_string
);
if
(
ret
<
0
)
if
(
ret
<
0
)
{
{
filter_chain_DeleteFilterInternal
(
p_chain
,
p_filter
);
filter_chain_DeleteFilterInternal
(
p_chain
,
p_filter
);
...
...
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