]> git.ipfire.org Git - thirdparty/curl.git/commit
url: fix cookielist memleak when curl_easy_reset
authorJay Satiro <raysatiro@yahoo.com>
Wed, 8 Mar 2023 08:42:19 +0000 (03:42 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Fri, 10 Mar 2023 08:49:16 +0000 (03:49 -0500)
commitb559ef6f361ad5ad35cc5cc6f50d73e2a80c11a0
tree6240f7cabcfeccb99885bf4d9f516403830b30b5
parent297ad6ae1867799533d85a9dbb2131df66297e75
url: fix cookielist memleak when curl_easy_reset

- Free set.cookelist in Curl_freeset instead of Curl_close.

Prior to this change the cookielist linked list wasn't freed by
curl_easy_reset which calls Curl_freeset to free all set.

Bug: https://github.com/curl/curl/issues/10694#issuecomment-1458619157
Reported-by: Sergey Ryabinin
Closes https://github.com/curl/curl/pull/10709
lib/url.c