[vlc-commits] hls: fix memory leak
Rémi Denis-Courmont
git at videolan.org
Sat Aug 22 09:41:32 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 22 10:41:26 2015 +0300| [21f36843c115fbbb1012ce771c5cba81e436b0a0] | committer: Rémi Denis-Courmont
hls: fix memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=21f36843c115fbbb1012ce771c5cba81e436b0a0
---
modules/demux/hls/playlist/Parser.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/demux/hls/playlist/Parser.cpp b/modules/demux/hls/playlist/Parser.cpp
index 828bb0e..611a89c 100644
--- a/modules/demux/hls/playlist/Parser.cpp
+++ b/modules/demux/hls/playlist/Parser.cpp
@@ -312,6 +312,7 @@ M3U8 * Parser::parse(const std::string &playlisturl)
free(psz_line);
return NULL;
}
+ free(psz_line);
M3U8 *playlist = new (std::nothrow) M3U8(p_stream);
if(!playlist)
More information about the vlc-commits
mailing list