levy5307 commented on code in PR #12257:
URL: https://github.com/apache/doris/pull/12257#discussion_r960355235


##########
be/src/runtime/free_pool.hpp:
##########
@@ -128,9 +128,14 @@ class FreePool {
 #ifndef NDEBUG
         check_valid_allocation(list);
 #endif
-        // Add node to front of list.
-        node->next = list->next;
-        list->next = node;
+        if (nullptr == list) {

Review Comment:
   > Why is `list` nullptr?
   
   It's hard to say, maybe it was released somewhere.



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