Free up the node_name to avoid memory leak