Fixed #10490: Code cleanup/Bugfix: Add some sql_free_result to the admin_get_* functi...
authorBenni Mack <benni.mack@typo3.org>
Fri, 27 Feb 2009 11:38:02 +0000 (11:38 +0000)
committerBenni Mack <benni.mack@typo3.org>
Fri, 27 Feb 2009 11:38:02 +0000 (11:38 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5073 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_db.php

index bf37f19..6376e3f 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-02-27  Benjamin Mack  <benni@typo3.org>
+
+       * Fixed #10490: Code cleanup/Bugfix: Add some sql_free_result to the admin_get_* functions (Thanks to Oliver Klee)
+
 2009-02-27  Francois Suter  <francois@typo3.org>
 
        * Fixed bug #10516: Typos in the Core: change "accesible" to "accessible" (Thanks to Daniel Krupke)
@@ -9,7 +13,7 @@
 
 2009-02-25  Kasper Sk\8crh¿j
 
-       * Added a small feature (extra hook argument) to the external link handler I committet in january. I didn't ask because this feature was made by me and very new. Let me know if this is a problem. Credits to Hassan Ait Abdellah
+       * Added a small feature (extra hook argument) to the external link handler I committed in january. I didn't ask because this feature was made by me and very new. Let me know if this is a problem. Credits to Hassan Ait Abdellah
 
 2009-02-23  Stanislas Rolland  <typo3@sjbr.ca>
 
index c434af9..98a9d24 100755 (executable)
@@ -1030,6 +1030,8 @@ class t3lib_DB {
                        while ($theTable = mysql_fetch_assoc($tables_result)) {
                                $whichTables[$theTable['Name']] = $theTable;
                        }
+
+                       $this->sql_free_result($tables_result);
                }
 
                return $whichTables;
@@ -1051,6 +1053,8 @@ class t3lib_DB {
                        $output[$fieldRow['Field']] = $fieldRow;
                }
 
+               $this->sql_free_result($columns_res);
+
                return $output;
        }
 
@@ -1069,6 +1073,8 @@ class t3lib_DB {
                        $output[] = $keyRow;
                }
 
+               $this->sql_free_result($keyRes);
+
                return $output;
        }
 
@@ -1089,6 +1095,8 @@ class t3lib_DB {
                        while (($row = mysql_fetch_assoc($columns_res))) {
                                $output[$row['Charset']] = $row;
                        }
+
+                       $this->sql_free_result($columns_res);
                }
 
                return $output;