Commit 89031e12 authored by Rémi Duraffort's avatar Rémi Duraffort

mp4: fix potential memleak.

parent 45428ac1
......@@ -405,7 +405,11 @@ static int Open( vlc_object_t * p_this )
if( asprintf( &psz_absolute, "%s://%s%s",
p_demux->psz_access, psz_path, psz_ref ) < 0 )
{
free( psz_ref );
free( psz_path );
return VLC_ENOMEM;
}
free( psz_ref );
psz_ref = psz_absolute;
......
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