[vlc-commits] demux: cdg: fix invalid free

Zhao Zhili git at videolan.org
Thu May 3 11:33:07 CEST 2018


vlc | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Thu May  3 17:01:58 2018 +0800| [351d907cfd51a686b487a1e646b51e08514dd4a8] | committer: Hugo Beauzée-Luyssen

demux: cdg: fix invalid free

Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

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

 modules/demux/cdg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/cdg.c b/modules/demux/cdg.c
index 2cbb17b8c3..5e627bb48d 100644
--- a/modules/demux/cdg.c
+++ b/modules/demux/cdg.c
@@ -148,7 +148,7 @@ static int Demux( demux_t *p_demux )
     if( p_sys->p_es )
         es_out_Send( p_demux->out, p_sys->p_es, p_block );
     else
-        block_Release( p_sys->p_es );
+        block_Release( p_block );
 
     return VLC_DEMUXER_SUCCESS;
 }



More information about the vlc-commits mailing list