|
@@ -1276,10 +1276,10 @@ void tor_cleanup(void) {
|
|
* unlink, nothing we could do about it anyways. */
|
|
* unlink, nothing we could do about it anyways. */
|
|
if (options->PidFile && options->command == CMD_RUN_TOR)
|
|
if (options->PidFile && options->command == CMD_RUN_TOR)
|
|
unlink(options->PidFile);
|
|
unlink(options->PidFile);
|
|
- crypto_global_cleanup();
|
|
|
|
if (accounting_is_enabled(options))
|
|
if (accounting_is_enabled(options))
|
|
accounting_record_bandwidth_usage(time(NULL));
|
|
accounting_record_bandwidth_usage(time(NULL));
|
|
tor_free_all(); /* move tor_free_all back into the ifdef below later. XXX*/
|
|
tor_free_all(); /* move tor_free_all back into the ifdef below later. XXX*/
|
|
|
|
+ crypto_global_cleanup();
|
|
#ifdef USE_DMALLOC
|
|
#ifdef USE_DMALLOC
|
|
dmalloc_log_unfreed();
|
|
dmalloc_log_unfreed();
|
|
dmalloc_shutdown();
|
|
dmalloc_shutdown();
|