Skip to content
New issue

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

curl_free man page: curl_free accepts void* instead of char* #10373

Closed
Thomas1664 opened this issue Jan 30, 2023 · 0 comments
Closed

curl_free man page: curl_free accepts void* instead of char* #10373

Thomas1664 opened this issue Jan 30, 2023 · 0 comments

Comments

@Thomas1664
Copy link
Contributor

Thomas1664 commented Jan 30, 2023

The documentation of curl_free says that it takes char* as its argument whereas it actually takes void*:

CURL_EXTERN void curl_free(void *p);

If you followed the documentation you would get an error in the following case:

std::unique_ptr<char, void(*)(char*)> res {curl_easy_escape(nullptr, str.data(), static_cast<int>(str.size())), curl_free};

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

Successfully merging a pull request may close this issue.

1 participant