[vlc-commits] stream_output: fix memory leak

Hannes Domani git at videolan.org
Fri Feb 26 18:02:04 CET 2016


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Fri Feb 26 17:49:17 2016 +0100| [4076e83d6658a11312dd541139a6366cb0161cc4] | committer: Jean-Baptiste Kempf

stream_output: fix memory leak

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

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

 src/stream_output/stream_output.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/stream_output/stream_output.c b/src/stream_output/stream_output.c
index bc3c502..e127c32 100644
--- a/src/stream_output/stream_output.c
+++ b/src/stream_output/stream_output.c
@@ -487,6 +487,7 @@ sout_input_t *sout_MuxAddStream( sout_mux_t *p_mux, const es_format_t *p_fmt )
         msg_Err( p_mux, "cannot add this stream" );
         TAB_REMOVE( p_mux->i_nb_inputs, p_mux->pp_inputs, p_input );
         block_FifoRelease( p_input->p_fifo );
+        es_format_Clean( &p_input->fmt );
         free( p_input );
         return NULL;
     }



More information about the vlc-commits mailing list