]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
libcurl leaked memory for cookies with the "max-age" field set.
authorDaniel Stenberg <daniel@haxx.se>
Sat, 16 Oct 2004 13:54:40 +0000 (13:54 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 16 Oct 2004 13:54:40 +0000 (13:54 +0000)
CHANGES
lib/cookie.c

diff --git a/CHANGES b/CHANGES
index a0f448ab650ddff28a10c6c8eb77f834d5634414..2333634a4e78674e7e4e50d9ee11b4db62b20ab0 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -6,8 +6,11 @@
 
                                   Changelog
 
-Gisle (16 October 2004)
+Daniel (16 October 2004)
+- runekl at opoint.com found out (and provided a fix) that libcurl leaked
+  memory for cookies with the "max-age" field set.
 
+Gisle (16 October 2004)
 - Issue 50 in TODO-RELEASE; Added Traian Nicolescu's patches for threaded
   resolver on Windows. Plugged some potential handle and memory leaks.
 
index 528d88f6515e123f68f39bf1ee1e9e0382a17ce1..f1750f6d85cb8149c848f8fb24cd6f5c0d514711 100644 (file)
@@ -111,6 +111,8 @@ static void freecookie(struct Cookie *co)
     free(co->name);
   if(co->value)
     free(co->value);
+  if(co->maxage)
+    free(co->maxage);
 
   free(co);
 }