joosthooz commented on a change in pull request #12089:
URL: https://github.com/apache/arrow/pull/12089#discussion_r783269777



##########
File path: cpp/src/arrow/compute/exec.cc
##########
@@ -697,7 +771,18 @@ class ScalarExecutor : public 
KernelExecutorImpl<ScalarKernel> {
       }
     }
 
+    // To check whether the kernel allocated new Buffers,
+    // insert all the preallocated ones into a set
+    std::unordered_set<std::shared_ptr<Buffer>> pre_buffers;

Review comment:
       The checks are now inside `#ifndef NDEBUG`.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to