[vlc-devel] [PATCH 2/3] asx: fix memory leak

Hannes Domani ssbssa at yahoo.de
Fri Jan 29 16:01:56 CET 2016


---
 modules/demux/playlist/asx.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/playlist/asx.c b/modules/demux/playlist/asx.c
index eb810c1..99485d2 100644
--- a/modules/demux/playlist/asx.c
+++ b/modules/demux/playlist/asx.c
@@ -285,6 +285,8 @@ static void ProcessEntry( int *pi_n_entry, xml_reader_t *p_xml_reader,
 
                 input_item_node_AppendItem( p_subitems, p_entry );
 
+                input_item_Release( p_entry );
+
                 while( i_options )
                     free( ppsz_options[--i_options] );
                 free( psz_name );
-- 
2.7.0



More information about the vlc-devel mailing list