Skip to content

Unpaired curl_global_init/curl_global_cleanup #5622

Closed

Description

@qiandu2006

curl_global_init(CURL_GLOBAL_ALL);

Activity

  1. sterchelen commented on Jun 29, 2020

    @sterchelen
    Contributor

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

  2. qiandu2006 commented on Jun 29, 2020

    @qiandu2006
    Author

    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?

  3. bagder commented on Jun 29, 2020

    @bagder
    Member

    It is indeed a bug.

  4. added a commit that references this issue on Jun 29, 2020
    98a8871
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions