[tor-commits] [tor/master] Move clearing of log messages on advice from @cypherpunks, in order to minimize risk of race conditions leading to another memory leak