diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-12-22 22:33:31 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-12-22 22:33:31 +0000 |
commit | 67abd4cd47cf0135c9ce0637f224624afad95c2f (patch) | |
tree | 26f41b3a6d1489d8a0e372ce7edab141648f09e2 /lib | |
parent | 58f4af7973e3d2ec0510050ea207e6b16c6c9a64 (diff) | |
download | curl-67abd4cd47cf0135c9ce0637f224624afad95c2f.tar.gz |
Rune Kleveland fixed a minor memory leak for received cookies with the (rare)
version attribute set.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cookie.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |