diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-07-01 06:19:19 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-07-01 06:19:19 +0000 |
commit | 087748c48eef2bf986660b628291dad857faca55 (patch) | |
tree | 801a219dfbdbe5fb5540efe4f8256613549cb6f3 | |
parent | e35187741be548ae869db90024b0486faa02dd7f (diff) |
don't close the trace stream until _after_ the easy handle has been cleaned
up, as that can send traces too
-rw-r--r-- | src/main.c | 6 |
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); |