diff --git a/ChangeLog b/ChangeLog index d366a48a1..f5b1dc7ba 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ $Source$ * libraries/mysql_charsets.lib.php, lang/*.inc.php: Updated collation definitions for MySQL 4.1.3 and 4.1.4. * lang/german-*.inc.php: Updates. + * db_details_db_info.php: Fixed a few "out of sync" errors. 2004-07-12 Marc Delisle * all themes/colors.inc.php, libraries/common.lib.php, diff --git a/db_details_db_info.php b/db_details_db_info.php index d3c0cb1b6..abb07dc5e 100644 --- a/db_details_db_info.php +++ b/db_details_db_info.php @@ -66,6 +66,8 @@ if ($cfg['SkipLockedTables'] == TRUE) { if (!isset($sot_cache[$tmp[0]])) { $sts_result = PMA_DBI_query('SHOW TABLE STATUS FROM ' . PMA_backquote($db) . ' LIKE \'' . addslashes($tmp[0]) . '\';'); $sts_tmp = PMA_DBI_fetch_assoc($sts_result); + PMA_DBI_free_result($sts_result); + unset($sts_result); if (!isset($sts_tmp['Type']) && isset($sts_tmp['Engine'])) { $sts_tmp['Type'] =& $sts_tmp['Engine']; @@ -88,6 +90,9 @@ if ($cfg['SkipLockedTables'] == TRUE) { $sot_ready = TRUE; } } + } else { + PMA_DBI_free_result($db_info_result); + unset($db_info_result); } } if (!isset($sot_ready)) {