Skip to content
Snippets Groups Projects
Commit 3758d15c authored by Steve Lhomme's avatar Steve Lhomme
Browse files

demux: asf: fix local buffer leak

Fixes #28998

(cherry picked from commit 430792dc)
parent 33a49638
No related branches found
No related tags found
1 merge request!6881[3.0] demux: asf: fix local buffer leak
Pipeline #567427 passed with stage
in 34 minutes and 3 seconds
......@@ -1222,9 +1222,6 @@ static int DemuxInit( demux_t *p_demux )
es_format_Clean( &fmt );
}
free( fmt_priorities_ex.pi_stream_numbers );
free( fmt_priorities_bitrate_ex.pi_stream_numbers );
p_sys->i_data_begin = p_sys->p_root->p_data->i_object_pos + 50;
if( p_sys->p_root->p_data->i_object_size > 50 ) /* see libasf ASF_OBJECT_DATA <= 50 handling */
{ /* local file */
......@@ -1357,6 +1354,8 @@ static int DemuxInit( demux_t *p_demux )
}
}
#endif
free( fmt_priorities_ex.pi_stream_numbers );
free( fmt_priorities_bitrate_ex.pi_stream_numbers );
p_sys->packet_sys.pi_preroll = &p_sys->p_fp->i_preroll;
p_sys->packet_sys.pi_preroll_start = &p_sys->i_preroll_start;
......@@ -1364,6 +1363,8 @@ static int DemuxInit( demux_t *p_demux )
return VLC_SUCCESS;
error:
free( fmt_priorities_ex.pi_stream_numbers );
free( fmt_priorities_bitrate_ex.pi_stream_numbers );
DemuxEnd( p_demux );
return VLC_EGENERIC;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment