mirror of
https://github.com/curl/curl.git
synced 2025-09-17 17:42:49 +03:00
better bailing out on memory failure
This commit is contained in:
parent
e11710714c
commit
d7cb09bd18
|
@ -342,8 +342,11 @@ CURLMcode curl_multi_perform(CURLM *multi_handle, int *running_handles)
|
||||||
else
|
else
|
||||||
free(gotourl);
|
free(gotourl);
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
easy->result = CURLE_OUT_OF_MEMORY;
|
easy->result = CURLE_OUT_OF_MEMORY;
|
||||||
|
easy->state = CURLM_STATE_COMPLETED;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user