mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
MDEV-38942: Fix memory leak in dict_sys_tables_rec_read()
- Free the heap before returning READ_NOT_FOUND for a delete-marked SYS_TABLES record.
This commit is contained in:
@@ -697,6 +697,9 @@ dict_sys_tables_rec_read(
|
||||
if (rec_get_deleted_flag(rec, 0)) {
|
||||
ut_ad(id);
|
||||
if (trx_id) {
|
||||
if (heap) {
|
||||
mem_heap_free(heap);
|
||||
}
|
||||
return READ_NOT_FOUND;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user