Commit 8f0ad2f3 authored by Francois Cartegnie's avatar Francois Cartegnie

demux: mp4: fix memleak on error

parent 849b1b27
......@@ -3632,7 +3632,11 @@ static int MP4_frg_GetChunk( demux_t *p_demux, MP4_Box_t *p_chunk, unsigned *i_t
ret->p_sample_delta_dts = calloc( ret->i_sample_count, sizeof( uint32_t ) );
if( !ret->p_sample_count_dts || !ret->p_sample_delta_dts )
{
free( ret->p_sample_count_dts );
free( ret->p_sample_delta_dts );
return VLC_ENOMEM;
}
ret->p_sample_count_pts = calloc( ret->i_sample_count, sizeof( uint32_t ) );
if( !ret->p_sample_count_pts )
......
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