Skip to content

Conversation

vitSkalicky
Copy link

curl_easy_escape() and curl_unescape() allocate new memory for the char*. std::string constructor copies the data from char*, and the char* needs to be freed afterwards, which it was not and therefore it was leaking.

Also, Is there a reason for using curl_unescape() instead of curl_easy_unescape()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant