fix memory leak in ObVTableScanParam

This commit is contained in:
obdev 2022-12-19 08:07:48 +00:00 committed by ob-robot
parent 194d99c19c
commit 3daf5f634e

View File

@ -224,15 +224,9 @@ ObVTableScanParam() :
void destroy()
{
if (OB_UNLIKELY(column_ids_.get_capacity() > OB_PREALLOCATED_COL_ID_NUM)) {
column_ids_.destroy();
}
if (OB_UNLIKELY(key_ranges_.get_capacity() > OB_DEFAULT_RANGE_COUNT)) {
key_ranges_.destroy();
}
if (OB_UNLIKELY(range_array_pos_.get_capacity() > OB_DEFAULT_RANGE_COUNT)) {
range_array_pos_.destroy();
}
column_ids_.destroy();
key_ranges_.destroy();
range_array_pos_.destroy();
destroy_schema_guard();
}
ObObjectID tenant_id_;