[vlc-commits] httpcookies: fix memleak
Rafaël Carré
git at videolan.org
Tue Sep 23 13:33:47 CEST 2014
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Sep 23 13:33:01 2014 +0200| [c88a2517bd9cfa4122b87979994f330b5a78c639] | committer: Rafaël Carré
httpcookies: fix memleak
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c88a2517bd9cfa4122b87979994f330b5a78c639
---
src/misc/httpcookies.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/misc/httpcookies.c b/src/misc/httpcookies.c
index 2ec3d33..4536880 100644
--- a/src/misc/httpcookies.c
+++ b/src/misc/httpcookies.c
@@ -87,6 +87,8 @@ void vlc_http_cookies_destroy( vlc_http_cookie_jar_t * p_jar )
vlc_array_clear( &p_jar->cookies );
vlc_mutex_destroy( &p_jar->lock );
+
+ free( p_jar );
}
bool vlc_http_cookies_append( vlc_http_cookie_jar_t * p_jar, const char * psz_cookie_header, const vlc_url_t *p_url )
More information about the vlc-commits
mailing list