diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-10-16 13:54:40 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-10-16 13:54:40 +0000 |
commit | f40c9b83dfbeb1219f8944675d19404e917e1447 (patch) | |
tree | 6a7f448d40c6c5160b14dc656d5aceae4f8577bb | |
parent | b9e082b81129a5525d9b0ad608bf804e3dd1b279 (diff) |
libcurl leaked memory for cookies with the "max-age" field set.
-rw-r--r-- | CHANGES | 5 | ||||
-rw-r--r-- | lib/cookie.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -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); } |