That was discussed here: UnsafeMutablePointer allocation compatibility with C malloc/free. As I understand it, UnsafeMutablePointer
allocation is malloc/free
compatible on all platforms except Windows, but it is not guaranteed.
1 Like