We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hollo there!
I found memory leaks.
inline std::string Session::easyEscape(const std::string& text) { char *encoded_output = curl_easy_escape(curl_, text.c_str(), static_cast<int>(text.length())); return std::string{encoded_output}; }
This code needs to free memory. For example like below.
inline std::string Session::easyEscape(const std::string& text) { char *encoded_output = curl_easy_escape(curl_, text.c_str(), static_cast<int>(text.length())); const auto string = std::string{ encoded_output }; curl_free(encoded_output); return string; }
The text was updated successfully, but these errors were encountered:
Good catch thanks, would you like to propose a PR so that you are contributor ?
For reference: https://curl.se/libcurl/c/curl_easy_escape.html
Sorry, something went wrong.
No branches or pull requests
Hollo there!
I found memory leaks.
This code needs to free memory.
For example like below.
The text was updated successfully, but these errors were encountered: