Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
7b7421e9
Commit
7b7421e9
authored
Jul 21, 2009
by
Erwan Tulou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zipaccess: correct memory leak (probing work moved before calloc)
parent
4d76e60e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
modules/access/zip/zipaccess.c
modules/access/zip/zipaccess.c
+6
-5
No files found.
modules/access/zip/zipaccess.c
View file @
7b7421e9
...
...
@@ -105,6 +105,12 @@ int AccessOpen( vlc_object_t *p_this )
char
*
psz_pathToZip
=
NULL
,
*
psz_path
=
NULL
,
*
psz_sep
=
NULL
;
if
(
!
strstr
(
p_access
->
psz_path
,
ZIP_SEP
)
)
{
msg_Dbg
(
p_access
,
"path does not contain separator "
ZIP_SEP
);
return
VLC_EGENERIC
;
}
p_access
->
p_sys
=
p_sys
=
(
access_sys_t
*
)
calloc
(
1
,
sizeof
(
access_sys_t
)
);
if
(
!
p_sys
)
...
...
@@ -113,11 +119,6 @@ int AccessOpen( vlc_object_t *p_this )
/* Split the MRL */
psz_path
=
strdup
(
p_access
->
psz_path
);
psz_sep
=
strstr
(
psz_path
,
ZIP_SEP
);
if
(
!
psz_sep
)
{
msg_Dbg
(
p_access
,
"path does not contain separator "
ZIP_SEP
);
return
VLC_EGENERIC
;
}
*
psz_sep
=
'\0'
;
psz_pathToZip
=
unescapeXml
(
psz_path
);
...
...
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