diff options
-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); } |