Commit 086a3600 authored by Sébastien Escudier's avatar Sébastien Escudier Committed by Rémi Denis-Courmont

leaks in case of http connection failure

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent b0afc863
...@@ -583,6 +583,18 @@ error: ...@@ -583,6 +583,18 @@ error:
free( p_sys->psz_user_agent ); free( p_sys->psz_user_agent );
Disconnect( p_access ); Disconnect( p_access );
if( p_sys->cookies )
{
int i;
for( i = 0; i < vlc_array_count( p_sys->cookies ); i++ )
free(vlc_array_item_at_index( p_sys->cookies, i ));
vlc_array_destroy( p_sys->cookies );
}
#ifdef HAVE_ZLIB_H
inflateEnd( &p_sys->inflate.stream );
#endif
free( p_sys ); free( p_sys );
return VLC_EGENERIC; return VLC_EGENERIC;
} }
......
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