copy allocated resource name (#2)