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
c101ca17
Commit
c101ca17
authored
Jan 21, 2011
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xml! fix potential memleak.
parent
d479ed1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
modules/misc/xml/libxml.c
modules/misc/xml/libxml.c
+6
-3
No files found.
modules/misc/xml/libxml.c
View file @
c101ca17
...
...
@@ -149,16 +149,19 @@ static int ReaderOpen( vlc_object_t *p_this )
xml_reader_sys_t
*
p_sys
=
malloc
(
sizeof
(
*
p_sys
)
);
xmlTextReaderPtr
p_libxml_reader
;
if
(
unlikely
(
!
p_sys
)
)
return
VLC_ENOMEM
;
if
(
!
xmlHasFeature
(
XML_WITH_THREAD
)
)
{
free
(
p_sys
);
return
VLC_EGENERIC
;
}
vlc_mutex_lock
(
&
lock
);
xmlInitParser
();
vlc_mutex_unlock
(
&
lock
);
if
(
unlikely
(
!
p_sys
)
)
return
VLC_ENOMEM
;
p_libxml_reader
=
xmlReaderForIO
(
StreamRead
,
NULL
,
p_reader
->
p_stream
,
NULL
,
NULL
,
0
);
if
(
!
p_libxml_reader
)
...
...
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