[vlc-devel] commit: Fix memleak (CID 212) ( Rémi Duraffort )
git version control
git at videolan.org
Wed Oct 1 21:14:30 CEST 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Oct 1 21:13:54 2008 +0200| [19bca43e040b69139b0eeca9494313baf6db4b21] | committer: Rémi Duraffort
Fix memleak (CID 212)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=19bca43e040b69139b0eeca9494313baf6db4b21
---
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 d814e00..485ae29 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -1352,7 +1352,10 @@ static int ParseAQT( demux_t *p_demux, subtitle_t *p_subtitle, int i_idx )
const char *s = TextGetLine( txt );
if( !s )
+ {
+ free( psz_text );
return VLC_EGENERIC;
+ }
/* Data Lines */
if( sscanf (s, "-->> %d", &t) == 1)
More information about the vlc-devel
mailing list