Index: multi.c
===================================================================
RCS file: /repository/curl/lib/multi.c,v
retrieving revision 1.31
diff -u -r1.31 multi.c
--- multi.c	26 Jun 2003 11:22:12 -0000	1.31
+++ multi.c	10 Jul 2003 14:08:15 -0000
@@ -440,8 +440,10 @@
 
         /* When we follow redirects, must to go back to the CONNECT state */
         if(easy->easy_conn->newurl) {
-          easy->result = Curl_follow(easy->easy_handle,
-                                     strdup(easy->easy_conn->newurl));
+	  char *newurl = easy->easy_conn->newurl;
+
+	  easy->easy_conn->newurl = NULL;
+          easy->result = Curl_follow(easy->easy_handle, newurl);
           if(CURLE_OK == easy->result) {
             easy->state = CURLM_STATE_CONNECT;
             result = CURLM_CALL_MULTI_PERFORM;
