Commit 59934b57 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>
(cherry picked from commit 7d282fac1cc455b5a5eca2bb56375efcbf879b06)
parent bfcd282a
......@@ -1887,6 +1887,7 @@ static int get_chunk_header(demux_t *p_demux)
/*msg_Dbg( p_demux, "chunk has %d records", i_num_recs );*/
free(p_sys->rec_hdrs);
p_sys->rec_hdrs = NULL;
/* skip past the 4 bytes we "peeked" earlier */
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