MDEV-28370 ASAN failure: InnoDB fails to free the memory allocated on dict_load_indexes()

- While loading the indexes, InnoDB fails to clear the index if the
system record has TEMP_INDEX_PREFIX_STR. This lead to ASAN failure.
The leak was introduced by commit cc2ddde4
(MDEV-18518)
parent d1edb011
......@@ -2004,6 +2004,7 @@ dict_load_indexes(
goto func_exit;
} else if (rec[8 + 8 + DATA_TRX_ID_LEN + DATA_ROLL_PTR_LEN]
== static_cast<byte>(*TEMP_INDEX_PREFIX_STR)) {
dict_mem_index_free(index);
goto next_rec;
} else {
const trx_id_t id = trx_read_trx_id(rec + 8 + 8);
......
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