This is an automated email from the ASF dual-hosted git repository.

raulcd pushed a commit to branch maint-13.0.0
in repository https://gitbox.apache.org/repos/asf/arrow.git

commit f0f27d748aaea1052744da2b2fc04950304d00fe
Author: Curt Hagenlocher <[email protected]>
AuthorDate: Mon Jul 17 10:43:22 2023 -0700

    GH-36688: [C#] Fix dereference error (#36691)
    
    
    * Closes: #36688
    
    Authored-by: Curt Hagenlocher <[email protected]>
    Signed-off-by: Weston Pace <[email protected]>
---
 csharp/src/Apache.Arrow/C/CArrowArrayStreamExporter.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/csharp/src/Apache.Arrow/C/CArrowArrayStreamExporter.cs 
b/csharp/src/Apache.Arrow/C/CArrowArrayStreamExporter.cs
index eb714da619..0a0f1cc837 100644
--- a/csharp/src/Apache.Arrow/C/CArrowArrayStreamExporter.cs
+++ b/csharp/src/Apache.Arrow/C/CArrowArrayStreamExporter.cs
@@ -161,7 +161,7 @@ namespace Apache.Arrow.C
 
             public static void Free(void** ptr)
             {
-                GCHandle gch = GCHandle.FromIntPtr((IntPtr)ptr);
+                GCHandle gch = GCHandle.FromIntPtr((IntPtr)(*ptr));
                 if (!gch.IsAllocated)
                 {
                     return;

Reply via email to