[vlc-commits] demux: ts: fix unlikely leak (cid #1231839)
Francois Cartegnie
git at videolan.org
Mon Aug 18 15:18:48 CEST 2014
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Aug 18 21:53:23 2014 +0900| [187f6e0487540584d14ec546beb5da4771552c99] | committer: Francois Cartegnie
demux: ts: fix unlikely leak (cid #1231839)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=187f6e0487540584d14ec546beb5da4771552c99
---
modules/demux/ts.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 778818f..22e0f59 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -3141,11 +3141,12 @@ static void EITCallBack( demux_t *p_demux,
/* Only take first description, as we don't handle language-info
for epg atm*/
- if( pE && psz_name == NULL)
+ if( pE && psz_name == NULL )
{
psz_name = EITConvertToUTF8( p_demux,
pE->i_event_name, pE->i_event_name_length,
p_sys->b_broken_charset );
+ free( psz_text );
psz_text = EITConvertToUTF8( p_demux,
pE->i_text, pE->i_text_length,
p_sys->b_broken_charset );
More information about the vlc-commits
mailing list