Specify that the destination curve must be initialized, and free the existing attributes (which `CustomData_copy` doesn't do).
Specify that the destination curve must be initialized, and free the existing attributes (which `CustomData_copy` doesn't do).