mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58: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:
parent
e35187741b
commit
087748c48e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user