Browse Source

Move clearing of log messages on advice from @cypherpunks, in order to minimize risk of race conditions leading to another memory leak

Ola Bini 9 years ago
parent
commit
6d5215fd19
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/test/test_options.c

+ 1 - 1
src/test/test_options.c

@@ -200,8 +200,8 @@ test_options_validate(void *arg)
   WANT_ERR("BridgeRelay 1\nDirCache 0",
   WANT_ERR("BridgeRelay 1\nDirCache 0",
            "We're a bridge but DirCache is disabled.");
            "We're a bridge but DirCache is disabled.");
 
 
-  clear_log_messages();
   close_temp_logs();
   close_temp_logs();
+  clear_log_messages();
   return;
   return;
 }
 }