vlc | branch: master | Francois Cartegnie <[email protected]> | Sun Nov 13 
19:21:32 2016 +0100| [e1a253f46fafd7164527af63025083404b6d998b] | committer: 
Francois Cartegnie

demux: h26X: fix memleak on es_Add error

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

 modules/demux/mpeg/h26x.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/demux/mpeg/h26x.c b/modules/demux/mpeg/h26x.c
index 69e7627..002650c 100644
--- a/modules/demux/mpeg/h26x.c
+++ b/modules/demux/mpeg/h26x.c
@@ -429,7 +429,10 @@ static int Demux( demux_t *p_demux)
                 p_sys->p_packetizer->fmt_out.b_packetized = true;
                 p_sys->p_es = es_out_Add( p_demux->out, 
&p_sys->p_packetizer->fmt_out );
                 if( !p_sys->p_es )
+                {
+                    block_ChainRelease( p_block_out );
                     return VLC_DEMUXER_EOF;
+                }
             }
 
             /* h264 packetizer does merge multiple NAL into AU, but slice flag 
persists */

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

Reply via email to