Removed memory leak in refresh_node_list_and_token_map