unsafe fn ptr_to_string_freed(input: *mut c_char) -> String {
    let string = ptr_to_string_cloned(input);
    bind::FreeString(input);
    string
}
Converts a C string into a Rust String.

# Safety
This function frees the pointer, so the caller must ensure that the pointer is not used
after this function is called.
crates/recursion/gnark-ffi/src/ffi/native.rs