This is an automated email from the ASF dual-hosted git repository.
westonpace pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new b4775012ab GH-36688: [C#] Fix dereference error (#36691)
b4775012ab is described below
commit b4775012ab0f7d8f996538af69f7d1c732f16ff0
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 56e0468f94..c748eed915 100644
--- a/csharp/src/Apache.Arrow/C/CArrowArrayStreamExporter.cs
+++ b/csharp/src/Apache.Arrow/C/CArrowArrayStreamExporter.cs
@@ -165,7 +165,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;