Hi, I am doing some FFI work and I have to deal with strings. So I came across of
intro_raw() function and its documentation states that:
The pointer which this function returns must be returned to Rust and reconstituted using from_raw to be properly deallocated. Specifically, one should not use the standard C free() function to deallocate this string.
I know that Rust now uses system’s allocator, but why that value can’t be freed from C using
I am sure that I am missing something, thanks for the answers!