Commit e7cf1b70 authored by Christophe Mutricy's avatar Christophe Mutricy

Fix memleak

Closes #2308
(cherry picked from commit f4407931)
parent 0a82b845
...@@ -774,6 +774,7 @@ static int SessionsSetup( demux_t *p_demux ) ...@@ -774,6 +774,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