pitrou commented on code in PR #35810:
URL: https://github.com/apache/arrow/pull/35810#discussion_r1210591496


##########
csharp/src/Apache.Arrow/C/CArrowArrayExporter.cs:
##########
@@ -203,6 +207,10 @@ private unsafe static void ReleaseArray(CArrowArray* 
cArray)
         private unsafe static void Dispose(void** ptr)
         {
             GCHandle gch = GCHandle.FromIntPtr((IntPtr)(*ptr));
+            if (!gch.IsAllocated)

Review Comment:
   Add a comment explaining when this might occur? (perhaps if an exception 
occurs while exporting the array?)



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