From 71eb91c5162bb7b1e6f609ea78c420eec6320cc7 Mon Sep 17 00:00:00 2001 From: Cai-Yao <729673078@qq.com> Date: Tue, 3 Sep 2024 10:05:19 +0000 Subject: [PATCH] Fix: hashtable no check item_buf is null --- src/sql/engine/join/hash_join/hash_table.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/engine/join/hash_join/hash_table.ipp b/src/sql/engine/join/hash_join/hash_table.ipp index a419a6d2c..15d178662 100644 --- a/src/sql/engine/join/hash_join/hash_table.ipp +++ b/src/sql/engine/join/hash_join/hash_table.ipp @@ -43,7 +43,7 @@ int HashTable::init(ObIAllocator &alloc, const int64_t max_batch bit_cnt_ = __builtin_ctz(BucketArray::BLOCK_CAPACITY); if (!std::is_same::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);