Commit 35d35480 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Unlikely memory leak - fixes #2256

parent 3b73bdb1
......@@ -275,7 +275,10 @@ static int Init( vout_thread_t *p_vout )
p_snapshot->date = 0;
p_snapshot->p_data = ( char* ) malloc( i_datasize );
if( p_snapshot->p_data == NULL )
{
free( p_snapshort );
return VLC_ENOMEM;
}
p_vout->p_sys->p_list[i_index] = p_snapshot;
}
......
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