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