]> git.sesse.net Git - vlc/commitdiff
httpcookies: fix memleak
authorRafaël Carré <funman@videolan.org>
Tue, 23 Sep 2014 11:33:01 +0000 (13:33 +0200)
committerRafaël Carré <funman@videolan.org>
Tue, 23 Sep 2014 11:33:01 +0000 (13:33 +0200)
src/misc/httpcookies.c

index 2ec3d33707901d340b034a245ba6000d70f62402..453688096ff0a612fe6f8fd00043d3df2550cb79 100644 (file)
@@ -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 )