Commit 60d6dc70 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

archive: Fix leak on error

CID #1413318
parent 60b9fae6
......@@ -228,7 +228,10 @@ static int archive_push_resource( private_sys_t* p_sys,
p_callback_data->p_sys = p_sys;
if( unlikely( !p_callback_data->psz_url && psz_url ) )
{
free( p_callback_data );
goto error;
}
pp_callback_data[ p_sys->i_callback_data++ ] = p_callback_data;
p_sys->pp_callback_data = pp_callback_data;
......
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