aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordenzor <denismikhaylov38@gmail.com>2020-05-09 17:52:47 +0300
committerJay Satiro <raysatiro@yahoo.com>2020-05-12 03:00:27 -0400
commita9021716cc207f7e88356a6c43f5d7b021660c9d (patch)
tree8b1eaf160a2d88dc2f7805d28f39dbfb25d8efa6
parentb995bb58cbd976280b132ee2148376fadd071063 (diff)
easy: fix dangling pointer on easy_perform fail
Closes https://github.com/curl/curl/pull/5363
-rw-r--r--lib/easy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/easy.c b/lib/easy.c
index 3cb3579f7..988ff613c 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -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;