Free temporary query result.

This commit is contained in:
Michal Čihař
2005-10-13 15:42:52 +00:00
parent 2287fd9927
commit acf06caecc
2 changed files with 2 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ $Source$
detection to only place where it is currently used.
* header.inc.php, css/phpmyadmin.css.php: Define CSS normal way and not
by writing through JavaScript.
* libraries/get_foreign.lib.php: Free temporary query result.
2005-10-13 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* left.php: preselect db if only one db

View File

@@ -46,6 +46,7 @@ if ($foreigners && isset($foreigners[$field])) {
$res = PMA_DBI_query('SELECT COUNT(*)' . $f_query_from . $f_query_filter);
if ($res) {
$the_total = PMA_DBI_fetch_value($res);
@PMA_DBI_free_result($res);
} else {
$the_total = 0;
}