yiguolei commented on code in PR #55749:
URL: https://github.com/apache/doris/pull/55749#discussion_r2332151274


##########
be/src/util/faststring.cc:
##########
@@ -37,7 +37,7 @@ void faststring::GrowToAtLeast(size_t newcapacity) {
 
 void faststring::GrowArray(size_t newcapacity) {
     DCHECK_GE(newcapacity, capacity_);
-    std::unique_ptr<uint8_t[]> 
newdata(reinterpret_cast<uint8_t*>(Allocator::alloc(newcapacity)));

Review Comment:
   这么改是错的,如果在40行之后,有异常退出,咋整?



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