Memory leak in tor-resolve

There's a tiny memory leak in tor-resolve (which doesn't actually matter, since it exits after running) but we should fix it anyway.