[vlc-commits] Avformat mux: fix a memory leak

Adrien Maglo git at videolan.org
Thu Jul 31 20:48:39 CEST 2014


vlc/vlc-2.2 | branch: master | Adrien Maglo <magsoft at videolan.org> | Wed Jul 30 16:44:29 2014 +0200| [f2db36471dd8028b6271c7472b24a3702431464f] | committer: Jean-Baptiste Kempf

Avformat mux: fix a memory leak

(cherry picked from commit 1d3afcdb03b4dab9938ae311205e6364e34f6ec5)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

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

diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index cac7c2d..c9532f5 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -161,6 +161,7 @@ void CloseMux( vlc_object_t *p_this )
     }
 
     avformat_free_context(p_sys->oc);
+    av_free(p_sys->io);
 
     free( p_sys->io_buffer );
     free( p_sys );



More information about the vlc-commits mailing list