From a9021716cc207f7e88356a6c43f5d7b021660c9d Mon Sep 17 00:00:00 2001 From: denzor Date: Sat, 9 May 2020 17:52:47 +0300 Subject: easy: fix dangling pointer on easy_perform fail Closes https://github.com/curl/curl/pull/5363 --- lib/easy.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3