aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-02-28 02:52:51 +0000
committerNick Mathewson <nickm@torproject.org>2005-02-28 02:52:51 +0000
commit97bc49bd72c20bf6ffae16e30941ccd7c15089d0 (patch)
treedd3310aeb5bfe662e7c89d601a5c611d9af5bda6 /src/or/main.c
parent0a2be3c9d83f86b1891bfca8b55d9b280007be79 (diff)
downloadtor-97bc49bd72c20bf6ffae16e30941ccd7c15089d0.tar.gz
tor-97bc49bd72c20bf6ffae16e30941ccd7c15089d0.zip
Try a little harder to avoid openssl SSL* double-free reports.
svn:r3710
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 24796df138..d440ba9a8f 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -1276,10 +1276,10 @@ void tor_cleanup(void) {
* unlink, nothing we could do about it anyways. */
if (options->PidFile && options->command == CMD_RUN_TOR)
unlink(options->PidFile);
- crypto_global_cleanup();
if (accounting_is_enabled(options))
accounting_record_bandwidth_usage(time(NULL));
tor_free_all(); /* move tor_free_all back into the ifdef below later. XXX*/
+ crypto_global_cleanup();
#ifdef USE_DMALLOC
dmalloc_log_unfreed();
dmalloc_shutdown();