webdav-client-cpp icon indicating copy to clipboard operation
webdav-client-cpp copied to clipboard

Fix memory leaks

Open vitSkalicky opened this issue 1 year ago • 0 comments

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()?

vitSkalicky avatar May 01 '24 16:05 vitSkalicky