From d440319842e564a727a54d2c44f92104bd96e0de Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Wed, 23 Nov 2016 20:12:28 +0100 Subject: [PATCH] cleanup: TABLE::init() unused freshly initialized record should be trashed with TRASH_ALLOC, not TRASH_FREE --- sql/table.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/table.cc b/sql/table.cc index 9177d1e38f6..3bc1fee273b 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -4454,7 +4454,7 @@ void TABLE::init(THD *thd, TABLE_LIST *tl) DBUG_ASSERT(key_read == 0); /* mark the record[0] uninitialized */ - TRASH(record[0], s->reclength); + TRASH_ALLOC(record[0], s->reclength); /* Initialize the null marker bits, to ensure that if we are doing a read