Skip to content

curl.cpp leaks CURL handles #31

Description

@dgoffredo

curl_easy_cleanup is not called on all CURL* objects.

curl_easy_cleanup is called (via CurlLibrary::easy_cleanup) when there's a failure to set up the handle (in post), and when the handle is completed or failed (in handle_message). It is not called for handles that have not completed by the time we're shutting down (at the end of run).

Add a call to curl_.easy_cleanup(handle) after this line:

log_on_error(curl_.multi_remove_handle(multi_handle_, handle));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions