viirya commented on issue #1425:
URL: https://github.com/apache/arrow-rs/issues/1425#issuecomment-1065806336


   So, from my side, the previous behavior is definitely wrong (assuming the 
passed in raw pointers are always Arc pointers).
   
   I can think of the options:
   
   * Mark source structs as released after cloning them. I think this follows 
the C data interface. This should allow the source structs to be freed at Java 
side and resolve the memory leak issue and double dropping issue.
   * Try other solution like Box.
   
   WDYT?


-- 
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: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to