Commit 447b8976 authored by ivoire's avatar ivoire

ingest: fix a memory leak

parent 53cedbb6
......@@ -66,11 +66,9 @@ static void usage(void)
*****************************************************************************/
static void OutputAux( int i_nb_payloads, uint64_t i_duration )
{
uint8_t *p_aux;
uint8_t p_aux[i_nb_payloads*sizeof(uint64_t)];
int i;
p_aux = malloc( i_nb_payloads * sizeof(uint64_t) );
for ( i = 0; i < i_nb_payloads; i++ )
{
uint64_t i_stc = i_last_stc + i_duration * (i + 1) / i_nb_payloads;
......@@ -252,6 +250,7 @@ int main( int i_argc, char **pp_argv )
}
}
free( p_buffer );
if ( !i_last_pcr_diff )
msg_Err( NULL, "no PCR found" );
else
......
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