This is running outside of `using`, which means the marshaller later is accessing `remoteHead.NamePtr` from memory that's been freed.