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
cd8e3a2b
Commit
cd8e3a2b
authored
Nov 17, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WPL: fix leak and NULL dereference
parent
dee1ccf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
modules/demux/playlist/wpl.c
modules/demux/playlist/wpl.c
+10
-6
No files found.
modules/demux/playlist/wpl.c
View file @
cd8e3a2b
...
...
@@ -95,15 +95,19 @@ static int Demux( demux_t *p_demux )
psz_parse
=
strchr
(
psz_uri
,
'"'
);
if
(
psz_parse
!=
NULL
)
{
input_item_t
*
p_input
;
*
psz_parse
=
'\0'
;
resolve_xml_special_chars
(
psz_uri
);
psz_uri
=
ProcessMRL
(
psz_uri
,
p_demux
->
p_sys
->
psz_prefix
);
p_input
=
input_item_NewExt
(
psz_uri
,
psz_uri
,
0
,
NULL
,
0
,
-
1
);
input_item_node_AppendItem
(
p_subitems
,
p_input
);
vlc_gc_decref
(
p_input
);
if
(
psz_uri
!=
NULL
)
{
input_item_t
*
p_input
;
p_input
=
input_item_NewExt
(
psz_uri
,
psz_uri
,
0
,
NULL
,
0
,
-
1
);
input_item_node_AppendItem
(
p_subitems
,
p_input
);
vlc_gc_decref
(
p_input
);
free
(
psz_uri
);
}
}
}
...
...
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