aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES5
-rw-r--r--lib/cookie.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index a0f448ab6..2333634a4 100644
--- 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.
diff --git a/lib/cookie.c b/lib/cookie.c
index 528d88f65..f1750f6d8 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -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);
}