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

Unpaired curl_global_init/curl_global_cleanup #5622

Closed
qiandu2006 opened this issue Jun 29, 2020 · 3 comments
Closed

Unpaired curl_global_init/curl_global_cleanup #5622

qiandu2006 opened this issue Jun 29, 2020 · 3 comments

Comments

@qiandu2006
Copy link

curl_global_init(CURL_GLOBAL_ALL);

@sterchelen
Copy link
Contributor

Thanks for your first issue @qiandu2006, but it is a bit too light. Could you add some context around it?

@qiandu2006
Copy link
Author

qiandu2006 commented Jun 29, 2020

In the document about curl_global_cleanup

This function releases resources acquired by curl_global_init.
You should call curl_global_cleanup once for each call you make to curl_global_init, after you are done using libcurl.

But in this file, there is no curl_global_cleanup called, so this may be an error?

@bagder
Copy link
Member

bagder commented Jun 29, 2020

It is indeed a bug.

bagder added a commit that referenced this issue Jun 29, 2020
Reported-by: qiandu2006 on github
Fixes #5622
@bagder bagder closed this as completed in 600db1e Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

3 participants