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
73a617b5
Commit
73a617b5
authored
Feb 06, 2015
by
Hannes Domani
Committed by
Jean-Baptiste Kempf
Feb 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zip: fix memory leaks
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
b1665d3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
modules/access/zip/zipstream.c
modules/access/zip/zipstream.c
+8
-0
No files found.
modules/access/zip/zipstream.c
View file @
73a617b5
...
...
@@ -121,6 +121,13 @@ inline static void free_all_node( node *root )
{
free_all_node
(
root
->
child
);
free
(
root
->
name
);
item
*
media
=
root
->
media
;
while
(
media
)
{
item
*
next_media
=
media
->
next
;
free
(
media
);
media
=
next_media
;
}
node
*
tmp
=
root
->
next
;
free
(
root
);
root
=
tmp
;
...
...
@@ -563,6 +570,7 @@ static int WriteXSPF( char **pp_buffer, vlc_array_t *p_filenames,
/* Root node */
node
*
playlist
=
new_node
(
psz_zip
);
free
(
psz_zip
);
/* Encode the URI and append ZIP_SEP */
char
*
psz_pathtozip
;
...
...
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