mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
tool_cfgable: Moved easy handle cleanup to fix pingpong logout issues
Commmit c5f8e2f5f4
removed the easy handle clean-up from tool_operate,
letting the code that was already present in free_config_fields()
perform the task. Unfortunately, this wasn't the correct place to do
this as it broke protocols, that would perform a logout, as the main
clean-up in tool_main had already been called.
This commit is contained in:
parent
3a0d1bebba
commit
c8d1733d12
@ -47,11 +47,6 @@ static void free_config_fields(struct Configurable *config)
|
||||
{
|
||||
struct getout *urlnode;
|
||||
|
||||
if(config->easy) {
|
||||
curl_easy_cleanup(config->easy);
|
||||
config->easy = NULL;
|
||||
}
|
||||
|
||||
Curl_safefree(config->random_file);
|
||||
Curl_safefree(config->egd_file);
|
||||
Curl_safefree(config->useragent);
|
||||
|
@ -1806,6 +1806,11 @@ static int operate_do(struct Configurable *config)
|
||||
|
||||
static void operate_free(struct Configurable *config)
|
||||
{
|
||||
if(config->easy) {
|
||||
curl_easy_cleanup(config->easy);
|
||||
config->easy = NULL;
|
||||
}
|
||||
|
||||
/* Release metalink related resources here */
|
||||
clean_metalink(config);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user