diff options
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index c3ccfe7f1..ce7bceea6 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -214,19 +214,9 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[]) heads.stream = stdout; heads.config = config; - /* - ** Initialize curl library - do not call any libcurl functions before - ** this point. - */ - if(main_init() != CURLE_OK) { - helpf(config->errors, "error initializing curl library\n"); - return CURLE_FAILED_INIT; - } - /* Get libcurl info right away */ if(get_libcurl_info() != CURLE_OK) { helpf(config->errors, "error retrieving curl library information\n"); - main_free(); return CURLE_FAILED_INIT; } @@ -234,7 +224,6 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[]) curl = curl_easy_init(); if(!curl) { helpf(config->errors, "error initializing curl easy handle\n"); - main_free(); return CURLE_FAILED_INIT; } config->easy = curl; @@ -1892,7 +1881,5 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[]) /* Release metalink related resources here */ clean_metalink(config); - main_free(); /* cleanup */ - return res; } |