FelixYBW commented on code in PR #8477:
URL: https://github.com/apache/incubator-gluten/pull/8477#discussion_r1910887546


##########
cpp/core/memory/MemoryAllocator.cc:
##########
@@ -179,6 +182,9 @@ bool StdMemoryAllocator::reallocateAligned(void* p, 
uint64_t alignment, int64_t
 }
 
 bool StdMemoryAllocator::free(void* p, int64_t size) {
+  if (p == nullptr) {
+    throw gluten::GlutenException("p is nullptr");
+  }

Review Comment:
   ```
   GLUTEN_CHECK(p!=nullptr, "free with nullptr");
   ```



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to