aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 126fa4af0..6d8a21bf0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -3558,15 +3558,15 @@ operate(struct Configurable *config, int argc, char *argv[])
if(config->headerfile && !headerfilep && heads.stream)
fclose(heads.stream);
- if(config->trace_fopened && config->trace_stream)
- fclose(config->trace_stream);
-
if(allocuseragent)
free(config->useragent);
/* cleanup the curl handle! */
curl_easy_cleanup(curl);
+ if(config->trace_fopened && config->trace_stream)
+ fclose(config->trace_stream);
+
if(config->errors_fopened)
fclose(config->errors);