aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-10-16 13:54:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-10-16 13:54:40 +0000
commitf40c9b83dfbeb1219f8944675d19404e917e1447 (patch)
tree6a7f448d40c6c5160b14dc656d5aceae4f8577bb
parentb9e082b81129a5525d9b0ad608bf804e3dd1b279 (diff)
libcurl leaked memory for cookies with the "max-age" field set.
-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);
}