memory leak cleanup campaign

This commit is contained in:
Daniel Stenberg
2000-11-17 14:03:58 +00:00
parent 7f77a061dd
commit 868488b518
4 changed files with 320 additions and 252 deletions

View File

@@ -390,6 +390,7 @@ CURLcode http(struct connectdata *conn)
if(co) {
int count=0;
struct Cookie *store=co;
/* now loop through all cookies that matched */
while(co) {
if(co->value && strlen(co->value)) {
@@ -405,7 +406,7 @@ CURLcode http(struct connectdata *conn)
if(count) {
add_buffer(req_buffer, "\r\n", 2);
}
cookie_freelist(co); /* free the cookie list */
cookie_freelist(store); /* free the cookie list */
co=NULL;
}