Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apacheGH-41534: [Go] Fix mem leak importing 0 length C Array (apache#…
…41535) ### What changes are included in this PR? If the `imp.alloc.bufCount` is 0, indicating we did not import any buffers from the provided C ArrowArray object, then we are free to not only call the release callback (which we already do) but also we need to free the temp ArrowArray we allocated to move the source to. This was uncovered by apache/arrow-adbc#1808 * GitHub Issue: apache#41534 Authored-by: Matt Topol <[email protected]> Signed-off-by: David Li <[email protected]>
- Loading branch information