Commit 5e78b3d8 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: mp4: fix incorrect free

parent 29cfd497
......@@ -4250,7 +4250,8 @@ static int FragDemuxTrack( demux_t *p_demux, mp4_track_t *p_track,
p_track->context.i_trun_sample_pos += i_read;
if( i_read < len || p_block == NULL )
{
free( p_block );
if( p_block )
block_Release( p_block );
return VLC_DEMUXER_EOF;
}
......
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