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:
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