Remove an unnecessary memcpy