[vlc-commits] avformat: fix memory leak

Hannes Domani git at videolan.org
Fri Feb 5 18:57:42 CET 2016


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Fri Jan 29 16:01:57 2016 +0100| [7b6b74274d73c1b8fd645cf4cad6227bd2764037] | committer: Jean-Baptiste Kempf

avformat: fix memory leak

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> 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 );



More information about the vlc-commits mailing list