Index: multi.c
===================================================================
RCS file: /cvsroot/curl/curl/lib/multi.c,v
retrieving revision 1.201
diff -u -r1.201 multi.c
--- multi.c	3 Aug 2009 11:32:55 -0000	1.201
+++ multi.c	19 Aug 2009 16:06:08 -0000
@@ -1325,6 +1325,8 @@
       else if(TRUE == done) {
         char *newurl;
         bool retry = Curl_retry_request(easy->easy_conn, &newurl);
+        if(!newurl)
+          return CURLM_OUT_OF_MEMORY;
         followtype follow=FOLLOW_NONE;
 
         /* call this even if the readwrite function returned error */

