[vlc-devel] commit: Fix memleak (CID 209) ( Rémi Duraffort )
git version control
git at videolan.org
Thu Oct 2 21:13:34 CEST 2008
vlc | branch: 0.9-bugfix | Rémi Duraffort <ivoire at videolan.org> | Wed Oct 1 21:20:11 2008 +0200| [a023f153391445888d92e5f14c2aacbce0e12e1c] | committer: Derk-Jan Hartman
Fix memleak (CID 209)
(cherry picked from commit d82d3cba7c830c934429b194c7ca200211f4ec9b)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a023f153391445888d92e5f14c2aacbce0e12e1c
---
modules/demux/subtitle.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/demux/subtitle.c b/modules/demux/subtitle.c
index 5374513..8a06866 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -1958,7 +1958,10 @@ static int ParseDKS( demux_t *p_demux, subtitle_t *p_subtitle, int i_idx )
char *s = TextGetLine( txt );
if( !s )
+ {
+ free( psz_text );
return VLC_EGENERIC;
+ }
if( sscanf( s, "[%d:%d:%d]", &h2, &m2, &s2 ) == 3 )
p_subtitle->i_stop = ( (int64_t)h2 * 3600*1000 +
More information about the vlc-devel
mailing list