diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-03-30 15:26:10 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-03-31 14:16:28 +0200 |
commit | 6fbcf4134af1f0df21fbcc06870f50b6cb2d3c41 (patch) | |
tree | 5aa29ff5e35b3d3128e05c9eafaa5ce7fab08b2d /sql | |
parent | 2f3d4bd566b5e377fe8a1749c14050b0a0e083d0 (diff) | |
download | mariadb-git-6fbcf4134af1f0df21fbcc06870f50b6cb2d3c41.tar.gz |
properly close the table in fill_schema_table_from_frm()
this closes the memory leak, that started to appear after da5c3e03f62
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_show.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |