Commit 59b45a90 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

multi interface: when a request is denied due to "Maximum redirects followed"

libcurl leaked the last Location: URL.
parent f6614759
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -7,6 +7,9 @@
                                  Changelog
                                  Changelog


Daniel (29 January 2005)
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()
- Connect failures with the multi interface was often returned as "connect()
  timed out" even though the reason was different.
  timed out" even though the reason was different.


+4 −0
Original line number Original line Diff line number Diff line
@@ -523,6 +523,10 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
              easy->state = CURLM_STATE_CONNECT;
              easy->state = CURLM_STATE_CONNECT;
              result = CURLM_CALL_MULTI_PERFORM;
              result = CURLM_CALL_MULTI_PERFORM;
            }
            }
            else
              /* Since we "took it", we are in charge of freeing this on
                 failure */
              free(newurl);
          }
          }
          else {
          else {
            easy->state = CURLM_STATE_DONE;
            easy->state = CURLM_STATE_DONE;