[vlc-commits] asx: fix double free
Pierre Lamot
git at videolan.org
Wed Dec 13 09:29:58 CET 2017
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Mon Dec 11 10:22:44 2017 +0100| [85136949fbeeb8eb9e6625003d192924a2f317a3] | committer: Jean-Baptiste Kempf
asx: fix double free
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=85136949fbeeb8eb9e6625003d192924a2f317a3
---
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;
}
More information about the vlc-commits
mailing list