mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
multi interface: when a request is denied due to "Maximum redirects followed"
libcurl leaked the last Location: URL.
This commit is contained in:
parent
f661475962
commit
59b45a90cc
3
CHANGES
3
CHANGES
@ -7,6 +7,9 @@
|
||||
Changelog
|
||||
|
||||
Daniel (29 January 2005)
|
||||
- multi interface: when a request is denied due to "Maximum redirects
|
||||
followed" libcurl leaked the last Location: URL.
|
||||
|
||||
- Connect failures with the multi interface was often returned as "connect()
|
||||
timed out" even though the reason was different.
|
||||
|
||||
|
@ -523,6 +523,10 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
|
||||
easy->state = CURLM_STATE_CONNECT;
|
||||
result = CURLM_CALL_MULTI_PERFORM;
|
||||
}
|
||||
else
|
||||
/* Since we "took it", we are in charge of freeing this on
|
||||
failure */
|
||||
free(newurl);
|
||||
}
|
||||
else {
|
||||
easy->state = CURLM_STATE_DONE;
|
||||
|
Loading…
Reference in New Issue
Block a user