[vlc-devel] commit: cmml: fix memleak (#2345) ( Rémi Duraffort )
git version control
git at videolan.org
Sun Dec 14 19:03:50 CET 2008
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sun Dec 14 19:03:32 2008 +0100| [59fc50a8e7aa1d6e9b74bcf6fb87418217185cb2] | committer: Rémi Duraffort
cmml: fix memleak (#2345)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=59fc50a8e7aa1d6e9b74bcf6fb87418217185cb2
---
modules/codec/cmml/xtag.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/modules/codec/cmml/xtag.c b/modules/codec/cmml/xtag.c
index 1378378..3a661b9 100644
--- a/modules/codec/cmml/xtag.c
+++ b/modules/codec/cmml/xtag.c
@@ -260,7 +260,11 @@ xtag_slurp_quoted (XTagParser * parser)
ret[xi] = '\0';
parser->start = &s[xi];
- if (!xtag_assert_and_pass (parser, quote)) return NULL;
+ if (!xtag_assert_and_pass (parser, quote))
+ {
+ free( ret );
+ return NULL;
+ }
return ret;
}
More information about the vlc-devel
mailing list