Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
fe3cb633
Commit
fe3cb633
authored
Jul 09, 2010
by
Rafaël Carré
Browse files
src/playlist/loadsave.c : Fix [
1644d683
]
typo and double free
parent
2af37db2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/playlist/loadsave.c
View file @
fe3cb633
...
...
@@ -128,7 +128,7 @@ int playlist_MLLoad( playlist_t *p_playlist )
}
char
*
psz_file
;
if
(
asprintf
(
&
psz_file
,
"%s"
DIR_SEP
"ml.xspf"
,
psz_datadir
)
!
=
-
1
)
if
(
asprintf
(
&
psz_file
,
"%s"
DIR_SEP
"ml.xspf"
,
psz_datadir
)
=
=
-
1
)
psz_file
=
NULL
;
free
(
psz_datadir
);
if
(
psz_file
==
NULL
)
...
...
@@ -136,10 +136,11 @@ int playlist_MLLoad( playlist_t *p_playlist )
/* loosy check for media library file */
struct
stat
st
;
i
nt
ret
=
vlc_stat
(
psz_file
,
&
st
)
;
free
(
psz_file
);
if
(
ret
)
i
f
(
vlc_stat
(
psz_file
,
&
st
)
)
{
free
(
psz_file
)
;
return
VLC_EGENERIC
;
}
char
*
psz_uri
=
make_URI
(
psz_file
,
"file/xspf-open"
);
free
(
psz_file
);
...
...
Write
Preview
Supports
Markdown
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