diff --git a/ChangeLog b/ChangeLog index 00433f510..32c0feb1d 100755 --- a/ChangeLog +++ b/ChangeLog @@ -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 * left.php: preselect db if only one db diff --git a/libraries/get_foreign.lib.php b/libraries/get_foreign.lib.php index a1e1ad43f..09ae74049 100644 --- a/libraries/get_foreign.lib.php +++ b/libraries/get_foreign.lib.php @@ -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; }