remote: fix memory leak on host removal