[vlc-commits] Fixed a double free when av_open_input_stream() fails.

Laurent Aimar git at videolan.org
Mon Sep 19 23:02:30 CEST 2011


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Sep 19 23:01:40 2011 +0200| [982c2aeaad0a322771ba647cfe708c0c25bb931e] | committer: Laurent Aimar

Fixed a double free when av_open_input_stream() fails.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=982c2aeaad0a322771ba647cfe708c0c25bb931e
---

 modules/demux/avformat/demux.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index b3bc5b9..6b2c3ae 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -233,6 +233,7 @@ int OpenDemux( vlc_object_t *p_this )
                               p_sys->fmt, NULL ) )
     {
         msg_Err( p_demux, "av_open_input_stream failed" );
+        p_sys->ic = NULL;
         free( psz_url );
         CloseDemux( p_this );
         return VLC_EGENERIC;



More information about the vlc-commits mailing list