diff --git a/src/dpp/cluster.cpp b/src/dpp/cluster.cpp index ffc08dccdb..611c091da4 100644 --- a/src/dpp/cluster.cpp +++ b/src/dpp/cluster.cpp @@ -322,7 +322,6 @@ json error_response(const std::string& message, http_request_completion_t& rv) } void cluster::post_rest(const std::string &endpoint, const std::string &major_parameters, const std::string ¶meters, http_method method, const std::string &postdata, json_encode_t callback, const std::string &filename, const std::string &filecontent, const std::string &filemimetype, const std::string &protocol) { - /* NOTE: This is not a memory leak! The request_queue will free the http_request once it reaches the end of its lifecycle */ rest->post_request(std::make_unique(endpoint + (!major_parameters.empty() ? "/" : "") + major_parameters, parameters, [endpoint, callback](http_request_completion_t rv) { json j; if (rv.error == h_success && !rv.body.empty()) { @@ -350,7 +349,6 @@ void cluster::post_rest_multipart(const std::string &endpoint, const std::string file_mimetypes.push_back(data.mimetype); } - /* NOTE: This is not a memory leak! The request_queue will free the http_request once it reaches the end of its lifecycle */ rest->post_request(std::make_unique(endpoint + (!major_parameters.empty() ? "/" : "") + major_parameters, parameters, [endpoint, callback](http_request_completion_t rv) { json j; if (rv.error == h_success && !rv.body.empty()) { @@ -369,7 +367,6 @@ void cluster::post_rest_multipart(const std::string &endpoint, const std::string void cluster::request(const std::string &url, http_method method, http_completion_event callback, const std::string &postdata, const std::string &mimetype, const std::multimap &headers, const std::string &protocol) { - /* NOTE: This is not a memory leak! The request_queue will free the http_request once it reaches the end of its lifecycle */ raw_rest->post_request(std::make_unique(url, callback, method, postdata, mimetype, headers, protocol)); }