You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by ra...@apache.org on 2023/07/25 17:23:13 UTC
[arrow] 01/01: GH-36688: [C#] Fix dereference error (#36691)
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 <cu...@hagenlocher.org>
AuthorDate: Mon Jul 17 10:43:22 2023 -0700
GH-36688: [C#] Fix dereference error (#36691)
* Closes: #36688
Authored-by: Curt Hagenlocher <cu...@hagenlocher.org>
Signed-off-by: Weston Pace <we...@gmail.com>
---
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;