[vlc-devel] commit: Fix memleak (Christophe Mutricy )
git version control
git at videolan.org
Sat Nov 22 18:03:45 CET 2008
vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Sat Nov 22 16:33:07 2008 +0000| [d95eef28a329c5da0274f2833c7c10861d48c4bc] | committer: Christophe Mutricy
Fix memleak
Closes #2300
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d95eef28a329c5da0274f2833c7c10861d48c4bc
---
modules/demux/subtitle.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/demux/subtitle.c b/modules/demux/subtitle.c
index 4df7ec0..e3df463 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -2024,6 +2024,7 @@ static int ParseSubViewer1( demux_t *p_demux, subtitle_t *p_subtitle, int i_idx
s = TextGetLine( txt );
if( !s )
+ free( psz_text );
return VLC_EGENERIC;
if( sscanf( s, "[%d:%d:%d]", &h2, &m2, &s2 ) == 3 )
More information about the vlc-devel
mailing list