[tor-commits] [tor/master] In tests, make sure that "ri" is freed on all paths.