Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
77950f05
Commit
77950f05
authored
Oct 31, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup and fix a potential memleak.
parent
0237be20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
23 deletions
+21
-23
modules/demux/playlist/xspf.c
modules/demux/playlist/xspf.c
+21
-23
No files found.
modules/demux/playlist/xspf.c
View file @
77950f05
...
...
@@ -553,34 +553,32 @@ static bool parse_track_node COMPLEX_INTERFACE
}
psz_uri
=
decode_URI_duplicate
(
psz_value
);
if
(
psz_uri
)
if
(
!
psz_uri
)
{
if
(
p_demux
->
p_sys
->
psz_base
&&
!
strstr
(
psz_uri
,
"://"
)
)
{
char
*
psz_tmp
=
malloc
(
strlen
(
p_demux
->
p_sys
->
psz_base
)
+
strlen
(
psz_uri
)
+
1
);
if
(
!
psz_tmp
)
return
false
;
sprintf
(
psz_tmp
,
"%s%s"
,
p_demux
->
p_sys
->
psz_base
,
psz_uri
);
free
(
psz_uri
);
psz_uri
=
psz_tmp
;
}
p_new_input
=
input_item_NewExt
(
p_demux
,
psz_uri
,
NULL
,
0
,
NULL
,
-
1
);
free
(
psz_uri
);
input_item_CopyOptions
(
p_input_item
,
p_new_input
);
psz_uri
=
NULL
;
FREE_ATT
();
p_handler
=
NULL
;
return
false
;
}
else
if
(
p_demux
->
p_sys
->
psz_base
&&
!
strstr
(
psz_uri
,
"://"
)
)
{
FREE_ATT
();
return
false
;
char
*
psz_tmp
;
if
(
asprintf
(
&
psz_tmp
,
"%s%s"
,
p_demux
->
p_sys
->
psz_base
,
psz_uri
)
==
-
1
)
{
free
(
psz_uri
);
FREE_ATT
();
return
NULL
;
}
free
(
psz_uri
);
psz_uri
=
psz_tmp
;
}
p_new_input
=
input_item_NewExt
(
p_demux
,
psz_uri
,
NULL
,
0
,
NULL
,
-
1
);
free
(
psz_uri
);
input_item_CopyOptions
(
p_input_item
,
p_new_input
);
psz_uri
=
NULL
;
FREE_ATT
();
p_handler
=
NULL
;
}
else
{
...
...
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