Fix: hashtable no check item_buf is null
This commit is contained in:
parent
5a1bdeab8f
commit
71eb91c516
@ -43,7 +43,7 @@ int HashTable<Bucket, Prober>::init(ObIAllocator &alloc, const int64_t max_batch
|
||||
bit_cnt_ = __builtin_ctz(BucketArray::BLOCK_CAPACITY);
|
||||
if (!std::is_same<Bucket, GenericBucket>::value) {
|
||||
void *item_buf = alloc.alloc(sizeof(ItemArray));
|
||||
if (OB_ISNULL(bucket_buf)) {
|
||||
if (OB_ISNULL(item_buf)) {
|
||||
ret = OB_ALLOCATE_MEMORY_FAILED;
|
||||
if (OB_NOT_NULL(item_buf)) {
|
||||
alloc.free(item_buf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user