[vlc-commits] stl: Fix memory leak
Hugo Beauzée-Luyssen
git at videolan.org
Thu Jan 26 11:03:12 CET 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Jan 26 09:48:04 2017 +0100| [0bcbffc88c535bd9c2034b10fe0239b1cf84af42] | committer: Hugo Beauzée-Luyssen
stl: Fix memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0bcbffc88c535bd9c2034b10fe0239b1cf84af42
---
modules/codec/stl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/codec/stl.c b/modules/codec/stl.c
index fa0608e..1544388 100644
--- a/modules/codec/stl.c
+++ b/modules/codec/stl.c
@@ -115,6 +115,7 @@ static text_segment_t *ParseText(const uint8_t *data, size_t size, const char *c
free(text);
text_segment_t *segment = text_segment_New( u8 );
+ free( u8 );
if( style )
segment->style = style;
return segment;
More information about the vlc-commits
mailing list