[vlc-commits] TiVo: fix double free

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


vlc/vlc-1.1 | branch: master | Clement Lecigne <clecigne at google.com> | Tue Dec 20 17:44:10 2011 +0200| [208b290a50178a505212abcc71b27f80244869a0] | 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.1.git/?a=commit;h=208b290a50178a505212abcc71b27f80244869a0
---

 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 b237592..627ca94 100644
--- a/modules/demux/ty.c
+++ b/modules/demux/ty.c
@@ -1894,6 +1894,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