Replace extraneous dl_shallow_copy/dl_shallow_free pair with pointer assignment