From 086a3600d6ba6fc7d9b44cbb42d37a5572102854 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Escudier?= Date: Tue, 31 Mar 2009 17:28:31 +0200 Subject: [PATCH] leaks in case of http connection failure MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémi Denis-Courmont --- modules/access/http.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/access/http.c b/modules/access/http.c index 77c62409d7..4b24ad3dcc 100644 --- a/modules/access/http.c +++ b/modules/access/http.c @@ -583,6 +583,18 @@ error: free( p_sys->psz_user_agent ); 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 ); return VLC_EGENERIC; } -- 2.39.2