mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00:00
RequestServer: Clean up the CURLM "multi handle" when client drops
Otherwise we may leak all kinds of things inside CURL.
This commit is contained in:
parent
1c61ccef40
commit
7cd6ea6f33
Notes:
github-actions[bot]
2024-12-25 18:15:39 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/7cd6ea6f333 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3041
1 changed files with 4 additions and 0 deletions
|
@ -270,6 +270,10 @@ ConnectionFromClient::ConnectionFromClient(IPC::Transport transport)
|
|||
|
||||
ConnectionFromClient::~ConnectionFromClient()
|
||||
{
|
||||
m_active_requests.clear();
|
||||
|
||||
curl_multi_cleanup(m_curl_multi);
|
||||
m_curl_multi = nullptr;
|
||||
}
|
||||
|
||||
void ConnectionFromClient::die()
|
||||
|
|
Loading…
Add table
Reference in a new issue