]> git.sesse.net Git - vlc/commitdiff
cmml: fix memleak (#2345)
authorRémi Duraffort <ivoire@videolan.org>
Sun, 14 Dec 2008 18:03:32 +0000 (19:03 +0100)
committerRémi Duraffort <ivoire@videolan.org>
Sun, 14 Dec 2008 18:03:32 +0000 (19:03 +0100)
modules/codec/cmml/xtag.c

index 13783785ac161a62dde1380a332067645e38b790..3a661b906297e040940adeb7b4b30095315d55ab 100644 (file)
@@ -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;
 }