[vlc-devel] [PATCH 1/2] asx: fix double free

Pierre Lamot pierre at videolabs.io
Mon Dec 11 10:22:44 CET 2017


---
 modules/demux/playlist/asx.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/modules/demux/playlist/asx.c b/modules/demux/playlist/asx.c
index 9ca126db4e..0c0614cec7 100644
--- a/modules/demux/playlist/asx.c
+++ b/modules/demux/playlist/asx.c
@@ -510,10 +510,7 @@ static char* ASXToXML( char* psz_source )
         }
     }
     if( vlc_memstream_close( &stream_out ) != 0 )
-    {
-        free( stream_out.ptr );
         return NULL;
-    }
 
     return stream_out.ptr;
 }
-- 
2.14.1



More information about the vlc-devel mailing list