aboutsummaryrefslogtreecommitdiff
path: root/src/tool_operate.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-02-09 17:16:15 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-02-09 17:16:15 +0000
commit86a40f5d1ad7a0ccb8522137d626551d2e36cd52 (patch)
treef7ee3e5e336a6ae6f392c39d86ed90e39c1cd718 /src/tool_operate.c
parentae363075e6219f3cb198447d42a6b696f427ff14 (diff)
tool_operate: Move the trace and error file closure to tool_cfgable
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r--src/tool_operate.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index b4034e8cb..559b24cc6 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -1786,9 +1786,6 @@ static int operate_do(struct Configurable *config)
if(heads.alloc_filename)
Curl_safefree(heads.filename);
- if(config->trace_fopened && config->trace_stream)
- fclose(config->trace_stream);
-
#ifndef CURL_DISABLE_LIBCURL_OPTION
/* Dump the libcurl code if previously enabled.
NOTE: that this function relies on config->errors amongst other things
@@ -1801,9 +1798,6 @@ static int operate_do(struct Configurable *config)
static void operate_free(struct Configurable *config)
{
- if(config->errors_fopened && config->errors)
- fclose(config->errors);
-
/* Release metalink related resources here */
clean_metalink(config);
}