This significantly simplifies memory management, mostly by avoiding the need to free the memory manually. It may also improve performance, since std::string has an inline buffer that can prevent heap allocations and it stores the size. Pull Request: https://projects.blender.org/blender/blender/pulls/117695