[tor-commits] [tor/master] Fix some leaks/missed checks in the unit tests