[vlc-commits] TiVo: fix double free

Clement Lecigne git at videolan.org
Tue Dec 20 16:52:51 CET 2011


vlc | branch: master | Clement Lecigne <clecigne at google.com> | Tue Dec 20 17:44:10 2011 +0200| [7d282fac1cc455b5a5eca2bb56375efcbf879b06] | committer: Rémi Denis-Courmont

TiVo: fix double free

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7d282fac1cc455b5a5eca2bb56375efcbf879b06
---

 modules/demux/ty.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/demux/ty.c b/modules/demux/ty.c
index e916b41..b181a6a 100644
--- a/modules/demux/ty.c
+++ b/modules/demux/ty.c
@@ -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 );



More information about the vlc-commits mailing list