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

This commit is contained in:
Ola Bini 2016-01-12 16:32:54 -05:00
parent 5c1c117b8e
commit 6d5215fd19
No known key found for this signature in database
GPG key ID: 465757AF3914B4B7

View file

@ -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;
} }