diff options
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index 4bbf29538..25aa9413d 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1772,18 +1772,10 @@ static CURLcode operate_do(struct OperationConfig *config) dumpeasysrc(config); #endif - return (CURLcode)res; -} - -static void operate_free(struct OperationConfig *config) -{ - if(config->easy) { - curl_easy_cleanup(config->easy); - config->easy = NULL; - } - /* Release metalink related resources here */ clean_metalink(config); + + return (CURLcode)res; } CURLcode operate(struct GlobalConfig *config, int argc, argv_item_t argv[]) @@ -1851,8 +1843,5 @@ CURLcode operate(struct GlobalConfig *config, int argc, argv_item_t argv[]) } } - /* Perform the cleanup */ - operate_free(config->first); - return result; } |