mirror of
https://github.com/curl/curl.git
synced 2026-07-29 01:33:07 +03:00
conncache: fix multi-thread use of shared connection cache
It could accidentally let the connection get used by more than one thread, leading to double-free and more. Reported-by: Christopher Reid Fixes #4544 Closes #4557
This commit is contained in:
parent
9e891ff54d
commit
ee263de7a3
8 changed files with 58 additions and 52 deletions
|
|
@ -1617,7 +1617,7 @@ CURLcode Curl_http_done(struct connectdata *conn,
|
|||
Curl_add_buffer_free(&http->send_buffer);
|
||||
}
|
||||
|
||||
Curl_http2_done(conn, premature);
|
||||
Curl_http2_done(data, premature);
|
||||
Curl_quic_done(data, premature);
|
||||
|
||||
Curl_mime_cleanpart(&http->form);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue