Skip to content

Commit 03255c1

Browse files
committed
Fix malloc size input
1 parent 073b531 commit 03255c1

File tree

1 file changed

+1
-1
lines changed
  • matlab/src/cpp/arrow/matlab/c/proxy

1 file changed

+1
-1
lines changed

Diff for: matlab/src/cpp/arrow/matlab/c/proxy/array.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace arrow::matlab::c::proxy {
2525

26-
Array::Array() : arrowArray{(struct ArrowArray*)malloc(sizeof(struct ArrowArray*))} {
26+
Array::Array() : arrowArray{(struct ArrowArray*)malloc(sizeof(struct ArrowArray))} {
2727
REGISTER_METHOD(Array, getAddress);
2828
}
2929

0 commit comments

Comments
 (0)