aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-10-19 20:37:24 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-10-19 20:37:24 +0000
commit3f1b9f095af2aafa37cd545f74d9f451d227e7c4 (patch)
treeb9020e95f785f24baa70d00c0250a05d8d281ff5 /src
parent8a6eeb82c50b33df1bc8db96bb04fa714222cc43 (diff)
dumpeasycode() uses warnf() which uses config->errors so we must not close
that before dumpeasycode() is called. Found by coverity.com
Diffstat (limited to 'src')
-rw-r--r--src/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index e266351a2..8212c028f 100644
--- a/src/main.c
+++ b/src/main.c
@@ -5064,13 +5064,16 @@ quit_curl:
if(config->trace_fopened && 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)
fclose(config->errors);
main_free(); /* cleanup */
- dumpeasycode(config);
-
return res;
}