[vlc-devel] commit: Fix memleak (CID 209) ( Rémi Duraffort )
git version control
git at videolan.org
Wed Oct 1 21:20:44 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Oct 1 21:20:11 2008 +0200| [d82d3cba7c830c934429b194c7ca200211f4ec9b] | committer: Rémi Duraffort
Fix memleak (CID 209)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d82d3cba7c830c934429b194c7ca200211f4ec9b
---
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 963181b..932b897 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -1968,7 +1968,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