mirror of
https://github.com/curl/curl.git
synced 2024-11-21 01:16:58 +08: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:
parent
4e276b1b68
commit
c6822f5a7f
@ -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 */
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user