viirya commented on pull request #1334:
URL: https://github.com/apache/arrow-rs/pull/1334#issuecomment-1064839953


   > As to the question @viirya raised in 
https://github.com/apache/arrow-rs/issues/1333 , when manage memory, the one 
who allocate it should free it, which means in our case, we need to alloc the 
struct in rust and pass the pointer to java and then also free the memory in 
rust.
   
   Simply said, I don't think this is correct. That is the whole point of C 
data interface. The release callback is designed to be called by not only the 
one allocates the C data interface structure.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to