mirror of
https://github.com/curl/curl.git
synced 2026-07-27 06:37:16 +03:00
easy: fix dangling pointer on easy_perform fail
Closes https://github.com/curl/curl/pull/5363
This commit is contained in:
parent
b995bb58cb
commit
a9021716cc
1 changed files with 1 additions and 0 deletions
|
|
@ -681,6 +681,7 @@ static CURLcode easy_perform(struct Curl_easy *data, bool events)
|
|||
mcode = curl_multi_add_handle(multi, data);
|
||||
if(mcode) {
|
||||
curl_multi_cleanup(multi);
|
||||
data->multi_easy = NULL;
|
||||
if(mcode == CURLM_OUT_OF_MEMORY)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
return CURLE_FAILED_INIT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue