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
775254b8
Commit
775254b8
authored
Aug 15, 2008
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential memleak.
parent
2b0814ab
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
3 deletions
+18
-3
modules/demux/playlist/b4s.c
modules/demux/playlist/b4s.c
+6
-1
modules/demux/playlist/podcast.c
modules/demux/playlist/podcast.c
+6
-1
modules/gui/skins2/parser/xmlparser.cpp
modules/gui/skins2/parser/xmlparser.cpp
+6
-1
No files found.
modules/demux/playlist/b4s.c
View file @
775254b8
...
...
@@ -149,7 +149,12 @@ static int Demux( demux_t *p_demux )
{
char
*
psz_name
=
xml_ReaderName
(
p_xml_reader
);
char
*
psz_value
=
xml_ReaderValue
(
p_xml_reader
);
if
(
!
psz_name
||
!
psz_value
)
return
-
1
;
if
(
!
psz_name
||
!
psz_value
)
{
free
(
psz_name
);
free
(
psz_value
);
return
-
1
;
}
if
(
!
strcmp
(
psz_name
,
"num_entries"
)
)
{
msg_Dbg
(
p_demux
,
"playlist has %d entries"
,
atoi
(
psz_value
)
);
...
...
modules/demux/playlist/podcast.c
View file @
775254b8
...
...
@@ -168,7 +168,12 @@ static int Demux( demux_t *p_demux )
{
char
*
psz_name
=
xml_ReaderName
(
p_xml_reader
);
char
*
psz_value
=
xml_ReaderValue
(
p_xml_reader
);
if
(
!
psz_name
||
!
psz_value
)
return
-
1
;
if
(
!
psz_name
||
!
psz_value
)
{
free
(
psz_name
);
free
(
psz_value
);
return
-
1
;
}
if
(
!
strcmp
(
psz_elname
,
"enclosure"
)
&&
!
strcmp
(
psz_name
,
"url"
)
)
{
...
...
modules/gui/skins2/parser/xmlparser.cpp
View file @
775254b8
...
...
@@ -163,7 +163,12 @@ bool XMLParser::parse()
{
char
*
name
=
xml_ReaderName
(
m_pReader
);
char
*
value
=
xml_ReaderValue
(
m_pReader
);
if
(
!
name
||
!
value
)
return
false
;
if
(
!
name
||
!
value
)
{
free
(
name
);
free
(
value
);
return
false
;
}
attributes
[
name
]
=
value
;
}
...
...
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