[vlc-commits] playlist: m3u: fix memory leak (#25138)
Alexandre Janniaux
git at videolan.org
Mon Oct 5 20:45:17 CEST 2020
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Wed Sep 23 10:33:42 2020 +0200| [32e14523ab8f362276e7a5a172b34a1a90ab5013] | committer: Alexandre Janniaux
playlist: m3u: fix memory leak (#25138)
The array of options was not released when the meta object was cleaned.
Fix #25138
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=32e14523ab8f362276e7a5a172b34a1a90ab5013
---
modules/demux/playlist/m3u.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/demux/playlist/m3u.c b/modules/demux/playlist/m3u.c
index 5e484d9869..84a60a2572 100644
--- a/modules/demux/playlist/m3u.c
+++ b/modules/demux/playlist/m3u.c
@@ -212,6 +212,7 @@ static void entry_meta_Clean( struct entry_meta_s *e )
free( e->psz_tvgid );
free( e->psz_grouptitle );
while( e->i_options-- ) free( (char*)e->ppsz_options[e->i_options] );
+ TAB_CLEAN( e->i_options, e->ppsz_options );
}
static void parseEXTINF( char *, char *(*)(const char *), struct entry_meta_s * );
More information about the vlc-commits
mailing list