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


   > If we clone the FFI struct, then it means we need to free the pointer by 
ourself, but if we free FFI_ArrowArray, then the data in this Array will also 
be free? Which means we can't free the pointer(until the data are used and 
ready to free, but in reality we can't hold this useless pointer in a big 
project for such a long time), which create memory leak.
   
   As the raw pointers are converted to `Arc`, they will be released correctly 
eventually. But the data is still there, so of course you should not release 
the pointers.
   
   


-- 
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