Fix memory corruption in MOT

This commit is contained in:
Vinoth Veeraraghavan
2020-09-23 12:26:00 +08:00
parent 0b5cf37ad6
commit bbcb209c6c

View File

@ -497,7 +497,9 @@ public:
Table* t = r->GetTable();
MOT_ASSERT(t != nullptr);
size += t->GetRowSizeFromPool();
t->DestroyRow(r);
if (!dropIndex) {
t->DestroyRow(r);
}
return size;
}