From 087748c48eef2bf986660b628291dad857faca55 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 1 Jul 2004 06:19:19 +0000 Subject: [PATCH] don't close the trace stream until _after_ the easy handle has been cleaned up, as that can send traces too --- src/main.c | 6 +++--- 1 file 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);