T. Bharath found this memory leak. It occurs when we replace an internally

already existing cookie with a new one.
This commit is contained in:
Daniel Stenberg 2001-10-24 11:36:55 +00:00
parent 4e276b1b68
commit c6822f5a7f
1 changed files with 3 additions and 0 deletions

View File

@ -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 */
}
}