]> granicus.if.org Git - curl/commitdiff
better bailing out on memory failure
authorDaniel Stenberg <daniel@haxx.se>
Mon, 17 May 2004 08:04:42 +0000 (08:04 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 17 May 2004 08:04:42 +0000 (08:04 +0000)
lib/multi.c

index 66a581f657e052171dbaf3ced04f38ce49158201..673a0f6cc2861033f17b93e982a14f28901a5427 100644 (file)
@@ -342,8 +342,11 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
             else
               free(gotourl);
           }
-          else
+          else {
             easy->result = CURLE_OUT_OF_MEMORY;
+            easy->state = CURLM_STATE_COMPLETED;
+            break;
+          }
         }
       }