Commit f4407931 authored by Christophe Mutricy's avatar Christophe Mutricy

Fix memleak

Closes #2308
parent 6b176dfc
...@@ -783,6 +783,7 @@ static int SessionsSetup( demux_t *p_demux ) ...@@ -783,6 +783,7 @@ static int SessionsSetup( demux_t *p_demux )
tk->p_buffer = (uint8_t *)malloc( 65536 ); tk->p_buffer = (uint8_t *)malloc( 65536 );
if( !tk->p_buffer ) if( !tk->p_buffer )
{ {
free( tk );
delete iter; delete iter;
return VLC_ENOMEM; return VLC_ENOMEM;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment