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
353a8120
Commit
353a8120
authored
Jun 24, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memleak when using --demux.
parent
9c03ddbb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/input/input.c
src/input/input.c
+5
-1
No files found.
src/input/input.c
View file @
353a8120
...
@@ -2335,6 +2335,7 @@ static int InputSourceInit( input_thread_t *p_input,
...
@@ -2335,6 +2335,7 @@ static int InputSourceInit( input_thread_t *p_input,
const
char
*
psz_access
;
const
char
*
psz_access
;
const
char
*
psz_demux
;
const
char
*
psz_demux
;
char
*
psz_path
;
char
*
psz_path
;
char
*
psz_var_demux
=
NULL
;
double
f_fps
;
double
f_fps
;
char
*
psz_dup
=
strdup
(
psz_mrl
);
char
*
psz_dup
=
strdup
(
psz_mrl
);
...
@@ -2402,7 +2403,7 @@ static int InputSourceInit( input_thread_t *p_input,
...
@@ -2402,7 +2403,7 @@ static int InputSourceInit( input_thread_t *p_input,
{
{
/* special hack for forcing a demuxer with --demux=module
/* special hack for forcing a demuxer with --demux=module
* (and do nothing with a list) */
* (and do nothing with a list) */
char
*
psz_var_demux
=
var_GetNonEmptyString
(
p_input
,
"demux"
);
psz_var_demux
=
var_GetNonEmptyString
(
p_input
,
"demux"
);
if
(
psz_var_demux
!=
NULL
&&
if
(
psz_var_demux
!=
NULL
&&
!
strchr
(
psz_var_demux
,
','
)
&&
!
strchr
(
psz_var_demux
,
','
)
&&
...
@@ -2643,6 +2644,7 @@ static int InputSourceInit( input_thread_t *p_input,
...
@@ -2643,6 +2644,7 @@ static int InputSourceInit( input_thread_t *p_input,
}
}
}
}
free
(
psz_var_demux
);
free
(
psz_dup
);
free
(
psz_dup
);
/* Set record capabilities */
/* Set record capabilities */
...
@@ -2692,6 +2694,8 @@ error:
...
@@ -2692,6 +2694,8 @@ error:
if
(
in
->
p_access
)
if
(
in
->
p_access
)
access_Delete
(
in
->
p_access
);
access_Delete
(
in
->
p_access
);
free
(
psz_var_demux
);
free
(
psz_dup
);
free
(
psz_dup
);
return
VLC_EGENERIC
;
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