mirror of
https://github.com/curl/curl.git
synced 2026-05-15 08:16:19 +03: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
1 changed files with 3 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue