This is the
Closes a table. A good time to free any resources that we have allocated.
Called from sql_base.cc, sql_select.cc, and table.cc. In
sql_select.cc it is only used to close up temporary tables or
during the process where a temporary table is converted over
to being a
MyISAM table. For sql_base.cc
look at close_data_tables().