projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e276b1
)
T. Bharath found this memory leak. It occurs when we replace an internally
author
Daniel Stenberg
<daniel@haxx.se>
Wed, 24 Oct 2001 11:36:55 +0000
(11:36 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Wed, 24 Oct 2001 11:36:55 +0000
(11:36 +0000)
already existing cookie with a new one.
lib/cookie.c
patch
|
blob
|
history
diff --git
a/lib/cookie.c
b/lib/cookie.c
index
97330cb
..
bac0adb
100644
(file)
--- a/
lib/cookie.c
+++ b/
lib/cookie.c
@@
-374,6
+374,9
@@
Curl_cookie_add(struct CookieInfo *c,
free(clist->maxage);
*clist = *co; /* then store all the new data */
+
+ free(co); /* free the newly alloced memory */
+ co = clist; /* point to the previous struct instead */
}
}