yiguolei commented on code in PR #9727:
URL: https://github.com/apache/incubator-doris/pull/9727#discussion_r879005535


##########
be/src/util/faststring.h:
##########
@@ -82,7 +82,7 @@ class faststring {
     OwnedSlice build() {
         uint8_t* ret = data_;
         if (ret == initial_data_) {
-            ret = new uint8_t[len_];
+            ret = (uint8_t*)malloc(len_);
             memcpy(ret, data_, len_);

Review Comment:
   ownedslice deconstructor using delete[]  to release data_, if we use malloc 
here, we need to modify it.



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