Use a tmp pointer to kdl tree