$NetBSD: patch-au,v 1.11 2011/12/22 13:31:48 drochner Exp $

VideoLAN-SA-1108

--- modules/demux/ty.c.orig	2011-07-12 18:11:24.000000000 +0000
+++ modules/demux/ty.c
@@ -1894,6 +1894,7 @@ static int get_chunk_header(demux_t *p_d
     /*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 );
