diff options
author | Monty <monty@mariadb.org> | 2018-05-23 11:26:49 +0300 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2018-05-23 11:26:49 +0300 |
commit | a816aa066e5c879a92819d694a93d245e6ec6e47 (patch) | |
tree | 47adefae278ea6f6dfe95b6b32be22d4da7a34be /sql/sql_statistics.cc | |
parent | 908676dfd9d981fd0f37a7cf9332abac522f1936 (diff) | |
download | mariadb-git-a816aa066e5c879a92819d694a93d245e6ec6e47.tar.gz |
Fixed ASAN heap-use-after-free handler::ha_index_or_rnd_end
MDEV-16123 ASAN heap-use-after-free handler::ha_index_or_rnd_end
MDEV-13828 Segmentation fault on RENAME TABLE
Problem was that destructor called methods for closed table.
Fixed by removing code in destructor.
Diffstat (limited to 'sql/sql_statistics.cc')
-rw-r--r-- | sql/sql_statistics.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_statistics.cc b/sql/sql_statistics.cc index ce320e87a4f..471749ad346 100644 --- a/sql/sql_statistics.cc +++ b/sql/sql_statistics.cc @@ -1376,7 +1376,8 @@ public: ~Stat_table_write_iter() { - cleanup(); + /* Ensure that cleanup has been run */ + DBUG_ASSERT(rowid_buf == 0); } }; |