[tor-commits] [tor/master] Fix a number of unit-test memory leaks, found by valgrind.