[CP] to issue<55354843>:fix a typo about free complex type memory when fail to deserialize collection

This commit is contained in:
hanr881
2024-03-07 09:45:24 +00:00
committed by ob-robot
parent 4c44f336f8
commit 36e01f7d24

View File

@ -2683,7 +2683,7 @@ int ObCollectionType::deserialize(ObSchemaGetterGuard &schema_guard,
if (OB_FAIL(ret)) {
if (OB_NOT_NULL(table_data)) {
for (int64_t j = 0; j <= n; ++j) {
ObObj* value = reinterpret_cast<ObObj*>(table_data + j);
ObObj* value = reinterpret_cast<ObObj*>(table_data + j * sizeof(ObObj));
if (OB_NOT_NULL(value)) {
int tmp = ObUserDefinedType::destruct_obj(*value);
if (OB_SUCCESS != tmp) {