[CP]:sync json pl manage from 42x to master
This commit is contained in:
@ -579,7 +579,8 @@ ObJsonNode *ObJsonObject::clone(ObIAllocator* allocator, bool is_deep_copy) cons
|
||||
for (uint64_t i = 0; i < len && OB_SUCC(ret); i++) {
|
||||
if (is_deep_copy) {
|
||||
char* str_buf = NULL;
|
||||
if (OB_ISNULL(str_buf = static_cast<char*>(allocator->alloc(object_array_[i].get_key().length())))) {
|
||||
bool is_key_empty = object_array_[i].get_key().length() == 0;
|
||||
if (!is_key_empty && OB_ISNULL(str_buf = static_cast<char*>(allocator->alloc(object_array_[i].get_key().length())))) {
|
||||
ret = OB_ALLOCATE_MEMORY_FAILED;
|
||||
LOG_WARN("allocate memory failed", K(ret), K(object_array_[i].get_key().length()));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user