Describe the enhancement requested
Currently a newly allocated ArrowArray will be marked as released, but ArrowSchema is not.
We have been bitten by this in apache/datafusion-comet#905 when a ArrowSchema passed from JVM to native is dropped that invokes uninitiated value in the release slot which causes SIGSEGV.
It is safer to mark newly allocated ArrowSchema as released following ArrowArray.
Component(s)
Java