vlc | branch: master | Hannes Domani <[email protected]> | Fri Jan 29 16:01:57 
2016 +0100| [7b6b74274d73c1b8fd645cf4cad6227bd2764037] | committer: 
Jean-Baptiste Kempf

avformat: fix memory leak

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 modules/demux/avformat/demux.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/avformat/demux.c b/modules/demux/avformat/demux.c
index 424d854..a56be31 100644
--- a/modules/demux/avformat/demux.c
+++ b/modules/demux/avformat/demux.c
@@ -320,6 +320,7 @@ int OpenDemux( vlc_object_t *p_this )
     {
         msg_Err( p_demux, "Could not open %s: %s", psz_url,
                  vlc_strerror_c(AVUNERROR(error)) );
+        av_free( p_io_buffer );
         av_free( pb );
         p_sys->ic = NULL;
         free( psz_url );

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to