mirror of
https://github.com/curl/curl.git
synced 2026-07-27 22:33:05 +03:00
Gisle Vanem found and fixed a memory leak when doing (failing) Windows
threaded name resolves.
This commit is contained in:
parent
2a0a305300
commit
3755bffcc2
2 changed files with 8 additions and 2 deletions
|
|
@ -1531,12 +1531,15 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
|
|||
}
|
||||
else
|
||||
rc = CURLE_OPERATION_TIMEDOUT;
|
||||
}
|
||||
|
||||
destroy_thread_data(&conn->async);
|
||||
destroy_thread_data(&conn->async);
|
||||
|
||||
if (CURLE_OK != rc)
|
||||
/* close the connection, since we can't return failure here without
|
||||
cleaning up this connection properly */
|
||||
Curl_disconnect(conn);
|
||||
}
|
||||
|
||||
return (rc);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue