[vlc-commits] TiVo: fix double free

Clement Lecigne git at videolan.org
Tue Dec 20 16:55:26 CET 2011


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

TiVo: fix double free

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>
(cherry picked from commit 7d282fac1cc455b5a5eca2bb56375efcbf879b06)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=59934b57826d4897e752438454551e49e5d3d2cc
---

 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