fix CURL depracations warnings

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9380 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: c0797bad31b5e2eec76313fd08d38008dab2f878
Former-commit-id: d2e3e25f2b5586a8f12b51b2b29b4c8faf76b560
This commit is contained in:
madbad 2024-03-07 22:56:15 +00:00
parent e3f728eb28
commit 3350287cf5

View file

@ -641,17 +641,19 @@ int WebServer::addAsyncRequest(const std::string &data)
//inform curl to send the form-post //inform curl to send the form-post
curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime); curl_easy_setopt(curl, CURLOPT_MIMEPOST, mime);
//cleanup
curl_mime_free(mime);
} }
//add the request to the queque //add the request to the queque
curl_multi_add_handle(this->multi_handle, curl); curl_multi_add_handle(this->multi_handle, curl);
//cleanup
curl_easy_cleanup(easy);
curl_mime_free(mime);
//pending request //pending request
webserverState=WEBSERVER_SENDING; webserverState=WEBSERVER_SENDING;
//cleanup
curl_easy_cleanup(curl);
return 0; return 0;
} }