1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

libcurl leaked memory for cookies with the "max-age" field set.

This commit is contained in:
Daniel Stenberg 2004-10-16 13:54:40 +00:00
parent b9e082b811
commit f40c9b83df
2 changed files with 6 additions and 1 deletions

View File

@ -6,8 +6,11 @@
Changelog 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 - Issue 50 in TODO-RELEASE; Added Traian Nicolescu's patches for threaded
resolver on Windows. Plugged some potential handle and memory leaks. resolver on Windows. Plugged some potential handle and memory leaks.

View File

@ -111,6 +111,8 @@ static void freecookie(struct Cookie *co)
free(co->name); free(co->name);
if(co->value) if(co->value)
free(co->value); free(co->value);
if(co->maxage)
free(co->maxage);
free(co); free(co);
} }