Commit 77b03649 authored by Marko Mäkelä's avatar Marko Mäkelä

row_merge_drop_temp_indexes(): Do not reference freed memory.

(Bug #53471)
parent 762c82c1
......@@ -2096,9 +2096,12 @@ row_merge_drop_temp_indexes(void)
if (table) {
dict_index_t* index;
dict_index_t* next_index;
for (index = dict_table_get_first_index(table);
index; index = dict_table_get_next_index(index)) {
index; index = next_index) {
next_index = dict_table_get_next_index(index);
if (*index->name == TEMP_INDEX_PREFIX) {
row_merge_drop_index(index, table, trx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment