lidavidm commented on code in PR #43997:
URL: https://github.com/apache/arrow/pull/43997#discussion_r1749398436
##########
java/c/src/main/java/org/apache/arrow/c/ArrowSchema.java:
##########
@@ -103,14 +104,21 @@ public static ArrowSchema wrap(long memoryAddress) {
* @return A new ArrowSchema instance
*/
public static ArrowSchema allocateNew(BufferAllocator allocator) {
- return new ArrowSchema(allocator.buffer(ArrowSchema.SIZE_OF));
+ ArrowSchema schema = new
ArrowSchema(allocator.buffer(ArrowSchema.SIZE_OF));
+ schema.markReleased();
+ return schema;
Review Comment:
Would it be safer to simply zero out the entire buffer?
--
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]