1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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

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