Commit 7d282fac authored by Clement Lecigne's avatar Clement Lecigne Committed by Rémi Denis-Courmont

TiVo: fix double free

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 75a40b63
...@@ -1887,6 +1887,7 @@ static int get_chunk_header(demux_t *p_demux) ...@@ -1887,6 +1887,7 @@ static int get_chunk_header(demux_t *p_demux)
/*msg_Dbg( p_demux, "chunk has %d records", i_num_recs );*/ /*msg_Dbg( p_demux, "chunk has %d records", i_num_recs );*/
free(p_sys->rec_hdrs); free(p_sys->rec_hdrs);
p_sys->rec_hdrs = NULL;
/* skip past the 4 bytes we "peeked" earlier */ /* skip past the 4 bytes we "peeked" earlier */
stream_Read( p_demux->s, NULL, 4 ); stream_Read( p_demux->s, NULL, 4 );
......
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