From f40c9b83dfbeb1219f8944675d19404e917e1447 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 16 Oct 2004 13:54:40 +0000 Subject: libcurl leaked memory for cookies with the "max-age" field set. --- lib/cookie.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/cookie.c') 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); } -- cgit v1.2.3