[vlc-devel] commit: Fix memleak (Christophe Mutricy )
git version control
git at videolan.org
Sat Nov 22 19:12:44 CET 2008
vlc | branch: 0.9-bugfix | Christophe Mutricy <xtophe at videolan.org> | Sat Nov 22 16:33:07 2008 +0000| [1f53d4701e17b1a55cc8acd73aa2f663cf7e8c41] | committer: Christophe Mutricy
Fix memleak
Closes #2300
(cherry picked from commit d95eef28a329c5da0274f2833c7c10861d48c4bc)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1f53d4701e17b1a55cc8acd73aa2f663cf7e8c41
---
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 0909832..95af594 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -2020,6 +2020,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