1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

properly close the table in fill_schema_table_from_frm()

this closes the memory leak, that started to appear after da5c3e03f6
This commit is contained in:
Sergei Golubchik
2017-03-30 15:26:10 +02:00
parent 2f3d4bd566
commit 6fbcf4134a

View File

@ -4667,7 +4667,7 @@ static int fill_schema_table_from_frm(THD *thd, TABLE *table,
table_list.view= (LEX*) share->is_view;
res= schema_table->process_table(thd, &table_list, table,
res, db_name, table_name);
free_root(&tbl.mem_root, MYF(0));
closefrm(&tbl);
}