This is an automated email from the ASF dual-hosted git repository.
wesm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 49ae8fa953 ARROW-17213: [C++] Fix for valgrind issue in
test-r-linux-valgrind crossbow build (#13715)
49ae8fa953 is described below
commit 49ae8fa9536b117f26e83941619df3b0e1b9e18a
Author: Wes McKinney <[email protected]>
AuthorDate: Tue Jul 26 20:12:41 2022 -0600
ARROW-17213: [C++] Fix for valgrind issue in test-r-linux-valgrind crossbow
build (#13715)
Authored-by: Wes McKinney <[email protected]>
Signed-off-by: Wes McKinney <[email protected]>
---
cpp/src/arrow/compute/kernels/scalar_compare.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/cpp/src/arrow/compute/kernels/scalar_compare.cc
b/cpp/src/arrow/compute/kernels/scalar_compare.cc
index f071986dd2..cfe1085531 100644
--- a/cpp/src/arrow/compute/kernels/scalar_compare.cc
+++ b/cpp/src/arrow/compute/kernels/scalar_compare.cc
@@ -271,8 +271,7 @@ struct CompareKernel {
if (out_is_byte_aligned) {
out_buffer = out_arr->buffers[1].data + out_arr->offset / 8;
} else {
- ARROW_ASSIGN_OR_RAISE(out_buffer_tmp,
-
ctx->Allocate(bit_util::BytesForBits(batch.length)));
+ ARROW_ASSIGN_OR_RAISE(out_buffer_tmp, ctx->AllocateBitmap(batch.length));
out_buffer = out_buffer_tmp->mutable_data();
}
if (batch[0].is_array() && batch[1].is_array()) {