aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tool_cfgable.c5
-rw-r--r--src/tool_operate.c5
2 files changed, 5 insertions, 5 deletions
diff --git a/src/tool_cfgable.c b/src/tool_cfgable.c
index 3ea73dabd..818d7f4d4 100644
--- a/src/tool_cfgable.c
+++ b/src/tool_cfgable.c
@@ -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);
diff --git a/src/tool_operate.c b/src/tool_operate.c
index b28321043..9c61623fe 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -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);
}