[vlc-commits] mkv: Fix leak on error
Hugo Beauzée-Luyssen
git at videolan.org
Sun Nov 12 18:48:32 CET 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Nov 12 17:33:54 2017 +0100| [15e5a7a66ae45131e13b33afb917072310ed7110] | committer: Hugo Beauzée-Luyssen
mkv: Fix leak on error
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=15e5a7a66ae45131e13b33afb917072310ed7110
---
modules/demux/mkv/mkv.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 554c660423..4068c3b0d8 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -127,6 +127,8 @@ static int Open( vlc_object_t * p_this )
if( p_stream == NULL )
{
msg_Err( p_demux, "cannot find KaxSegment or missing mandatory KaxInfo" );
+ delete p_io_stream;
+ delete p_io_callback;
goto error;
}
p_sys->streams.push_back( p_stream );
More information about the vlc-commits
mailing list