[vlc-commits] demux: mkv: fix potential leak

Francois Cartegnie git at videolan.org
Wed Jul 22 16:17:33 CEST 2020


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jul 15 20:10:41 2020 +0200| [582daa4ed6dcdb81ad0158996eaa3b640b273897] | committer: Francois Cartegnie

demux: mkv: fix potential leak

(cherry picked from commit a517348372d94280b7eff9d2be51328768cff402)

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

 modules/demux/mkv/mkv.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 87a8736d16..2cca6a8618 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -786,6 +786,7 @@ static int Demux( demux_t *p_demux)
             if( es_out_SetPCR( p_demux->out, i_pcr ) )
             {
                 msg_Err( p_demux, "ES_OUT_SET_PCR failed, aborting." );
+                delete block;
                 return 0;
             }
 



More information about the vlc-commits mailing list