Free up node_name to avoid memory leak