Leota pips McMahon for Wallabies berth