Commit 56dc82ed authored by Rémi Duraffort's avatar Rémi Duraffort

Zip: fix use after free error.

parent ebbedb39
...@@ -205,8 +205,8 @@ int StreamOpen( vlc_object_t *p_this ) ...@@ -205,8 +205,8 @@ int StreamOpen( vlc_object_t *p_this )
if( !p_sys->zipFile ) if( !p_sys->zipFile )
{ {
msg_Warn( s, "unable to open file" ); msg_Warn( s, "unable to open file" );
free( p_sys );
free( p_sys->fileFunctions ); free( p_sys->fileFunctions );
free( p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
...@@ -214,8 +214,8 @@ int StreamOpen( vlc_object_t *p_this ) ...@@ -214,8 +214,8 @@ int StreamOpen( vlc_object_t *p_this )
char *psz_tmp; char *psz_tmp;
if( asprintf( &psz_tmp, "%s.xspf", s->psz_path ) == -1 ) if( asprintf( &psz_tmp, "%s.xspf", s->psz_path ) == -1 )
{ {
free( p_sys );
free( p_sys->fileFunctions ); free( p_sys->fileFunctions );
free( p_sys );
return VLC_ENOMEM; return VLC_ENOMEM;
} }
p_sys->psz_path = s->psz_path; p_sys->psz_path = s->psz_path;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment