[vlc-commits] asx: fix double free

Pierre Lamot git at videolan.org
Wed Dec 13 11:15:31 CET 2017


vlc/vlc-3.0 | branch: master | Pierre Lamot <pierre at videolabs.io> | Mon Dec 11 10:22:44 2017 +0100| [4d3165e759f16502bb451abc46468802175856b9] | committer: Hugo Beauzée-Luyssen

asx: fix double free

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 85136949fbeeb8eb9e6625003d192924a2f317a3)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=4d3165e759f16502bb451abc46468802175856b9
---

 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 8472cb5d70..aa71b1b0c4 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;
 }



More information about the vlc-commits mailing list