From bbcb209c6cec169e778b8e51fb9e0472a8d6463a Mon Sep 17 00:00:00 2001 From: Vinoth Veeraraghavan Date: Wed, 23 Sep 2020 12:26:00 +0800 Subject: [PATCH] Fix memory corruption in MOT --- src/gausskernel/storage/mot/core/src/storage/row.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gausskernel/storage/mot/core/src/storage/row.h b/src/gausskernel/storage/mot/core/src/storage/row.h index 99a901bb5..a2483b9d9 100644 --- a/src/gausskernel/storage/mot/core/src/storage/row.h +++ b/src/gausskernel/storage/mot/core/src/storage/row.h @@ -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; }