1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

dumpeasycode() uses warnf() which uses config->errors so we must not close

that before dumpeasycode() is called. Found by coverity.com
This commit is contained in:
Daniel Stenberg 2008-10-19 20:37:24 +00:00
parent 8a6eeb82c5
commit 3f1b9f095a

View File

@ -5064,13 +5064,16 @@ quit_curl:
if(config->trace_fopened && config->trace_stream) if(config->trace_fopened && config->trace_stream)
fclose(config->trace_stream); fclose(config->trace_stream);
/* Dump the libcurl code if previously enabled.
NOTE: that this function relies on config->errors amongst other things
so not everything can be closed and cleaned before this is called */
dumpeasycode(config);
if(config->errors_fopened) if(config->errors_fopened)
fclose(config->errors); fclose(config->errors);
main_free(); /* cleanup */ main_free(); /* cleanup */
dumpeasycode(config);
return res; return res;
} }