From 67abd4cd47cf0135c9ce0637f224624afad95c2f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 22 Dec 2004 22:33:31 +0000 Subject: [PATCH] Rune Kleveland fixed a minor memory leak for received cookies with the (rare) version attribute set. --- CHANGES | 3 +++ lib/cookie.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/CHANGES b/CHANGES index 754f72480..d45fa2f3c 100644 --- a/CHANGES +++ b/CHANGES @@ -8,6 +8,9 @@ Daniel (22 December 2004) +- Rune Kleveland fixed a minor memory leak for received cookies with the + (rare) version attribute set. + - Marcin Konicki provided two configure fixes and a source fix to make curl build out-of-the-box on BeOS. diff --git a/lib/cookie.c b/lib/cookie.c index ba4d295ab..f6cfc29cf 100644 --- a/lib/cookie.c +++ b/lib/cookie.c @@ -113,6 +113,8 @@ static void freecookie(struct Cookie *co) free(co->value); if(co->maxage) free(co->maxage); + if(co->version) + free(co->version); free(co); }