diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index f3620b860a770e739de0653e18b7864b03e8f57a..5a53ba30631d5ac643e93b034ee358ac72981adf 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -1198,6 +1198,7 @@ static int mysql_admin_table(THD* thd, TABLE_LIST* tables,
   if (send_fields(thd, field_list, 1))
     DBUG_RETURN(-1);
 
+  mysql_ha_closeall(thd, tables);
   for (table = tables; table; table = table->next)
   {
     char table_name[NAME_LEN*2+2];