From 6fbcf4134af1f0df21fbcc06870f50b6cb2d3c41 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Thu, 30 Mar 2017 15:26:10 +0200 Subject: [PATCH] properly close the table in fill_schema_table_from_frm() this closes the memory leak, that started to appear after da5c3e03f62 --- sql/sql_show.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 18bc19bb85e..6564504eff4 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -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); }