Fix unused memory allocation

This commit is contained in:
obdev
2024-02-07 06:38:20 +00:00
committed by ob-robot
parent 0add84d2dc
commit 933db9c2b3

View File

@ -2210,9 +2210,6 @@ int PushdownFilterInfo::init(const storage::ObTableIterParam &iter_param, common
LOG_WARN("Invalid argument to init store pushdown filter", K(ret), K(iter_param));
} else if (nullptr == iter_param.pushdown_filter_) {
// nothing to do without filter exprs
} else if (OB_ISNULL((buf = alloc.alloc(sizeof(ObObj) * out_col_cnt)))) {
ret = OB_ALLOCATE_MEMORY_FAILED;
LOG_WARN("Fail to allocate memory for pushdown filter col buf", K(ret), K(out_col_cnt));
} else if (OB_ISNULL((buf = alloc.alloc(sizeof(blocksstable::ObStorageDatum) * out_col_cnt)))) {
ret = OB_ALLOCATE_MEMORY_FAILED;
LOG_WARN("Fail to allocate memory for pushdown filter col buf", K(ret), K(out_col_cnt));