mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05: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
3
CHANGES
3
CHANGES
@ -7,6 +7,9 @@
|
|||||||
Changelog
|
Changelog
|
||||||
|
|
||||||
Daniel (23 April 2004)
|
Daniel (23 April 2004)
|
||||||
|
- Gisle Vanem found and fixed a memory leak when doing (failing) Windows
|
||||||
|
threaded name resolves.
|
||||||
|
|
||||||
- I also added test case 163 just to make sure -F "var=<file" works fine and
|
- I also added test case 163 just to make sure -F "var=<file" works fine and
|
||||||
can pass on characters such as newlines, carriage-return and tabs.
|
can pass on characters such as newlines, carriage-return and tabs.
|
||||||
|
|
||||||
|
@ -1531,12 +1531,15 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
rc = CURLE_OPERATION_TIMEDOUT;
|
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
|
/* close the connection, since we can't return failure here without
|
||||||
cleaning up this connection properly */
|
cleaning up this connection properly */
|
||||||
Curl_disconnect(conn);
|
Curl_disconnect(conn);
|
||||||
}
|
|
||||||
return (rc);
|
return (rc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user