[vlc-commits] taglib: fix memory leak
Rémi Denis-Courmont
git at videolan.org
Sat Aug 22 09:46:24 CEST 2015
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Aug 22 10:46:17 2015 +0300| [18a676c9e06fa1407b525b3c2337ada788aa06e8] | committer: Rémi Denis-Courmont
taglib: fix memory leak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=18a676c9e06fa1407b525b3c2337ada788aa06e8
---
modules/meta_engine/taglib.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index ad37d32..23e2eab 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -598,6 +598,7 @@ static void ReadMetaFromXiph( Ogg::XiphComment* tag, demux_meta_t* p_demux_meta,
/* TODO: Use i_cover_score / i_cover_idx to select the picture. */
p_attachment = ParseFlacPicture( p_data, i_data, 0,
&i_cover_score, &i_cover_idx );
+ free( p_data );
}
if (p_attachment) {
More information about the vlc-commits
mailing list