1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

don't close the trace stream until _after_ the easy handle has been cleaned

up, as that can send traces too
This commit is contained in:
Daniel Stenberg 2004-07-01 06:19:19 +00:00
parent e35187741b
commit 087748c48e

View File

@ -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);