diff options
author | Sergei Golubchik <serg@mariadb.org> | 2016-11-23 20:12:28 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2016-12-12 20:27:25 +0100 |
commit | d440319842e564a727a54d2c44f92104bd96e0de (patch) | |
tree | 6ba66ecfbf5671b3e174f0c8c9cd102ba793c412 | |
parent | 335082ec5e2e7214773720b0bf82a2242255326a (diff) | |
download | mariadb-git-d440319842e564a727a54d2c44f92104bd96e0de.tar.gz |
cleanup: TABLE::init()
unused freshly initialized record should be trashed
with TRASH_ALLOC, not TRASH_FREE
-rw-r--r-- | sql/table.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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 |