The logic in this function is bogus.
This is a safety issue, as dropping the Option is only valid if the pointer is non-nullable.
The problem here is coming from the fact that cbindgen is dropping the knowledge of whether the pointer is nullable or not before this function.