Commit 6fbcf413 authored by Sergei Golubchik's avatar Sergei Golubchik

properly close the table in fill_schema_table_from_frm()

this closes the memory leak, that started to appear after da5c3e03
parent 2f3d4bd5
......@@ -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);
}
......
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