[CP] to issue<55354843>:fix a typo about free complex type memory when fail to deserialize collection
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user