1
0
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:
Thirunarayanan Balathandayuthapani
2026-10-13 18:19:55 +05:30
parent ac9c38fde0
commit a466cdb832

View File

@@ -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;
}
}