Commit daa972d9 authored by Rémi Duraffort's avatar Rémi Duraffort

flac: fix memory leak (cid 1048914)

parent 3c975c0f
......@@ -486,7 +486,10 @@ static int ReadMeta( demux_t *p_demux, uint8_t **pp_streaminfo, int *pi_streami
return VLC_EGENERIC;
if( stream_Read( p_demux->s, NULL, 4) < 4)
{
free( *pp_streaminfo );
return VLC_EGENERIC;
}
if( stream_Read( p_demux->s, *pp_streaminfo, STREAMINFO_SIZE ) != STREAMINFO_SIZE )
{
msg_Err( p_demux, "failed to read STREAMINFO metadata block" );
......
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