Fixed bug #11526: Hanging record sets in tslib_feUserAuth
authorOliver Hader <oliver.hader@typo3.org>
Tue, 14 Jul 2009 11:43:09 +0000 (11:43 +0000)
committerOliver Hader <oliver.hader@typo3.org>
Tue, 14 Jul 2009 11:43:09 +0000 (11:43 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5715 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/class.tslib_feuserauth.php

index 6b07a20..46ca233 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 2009-07-14  Oliver Hader  <oliver@typo3.org>
 
        * Added feature #11508: Integrate possibility to define lifetime of frontend session data
+       * Fixed bug #11526: Hanging record sets in tslib_feUserAuth
 
 2009-07-12  Ingo Renner  <ingo@typo3.org>
 
index 9f4b7b2..afae03d 100644 (file)
@@ -373,6 +373,7 @@ class tslib_feUserAuth extends t3lib_userAuth {
                        if ($sesDataRow = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($dbres))        {
                                $this->sesData = unserialize($sesDataRow['content']);
                        }
+                       $GLOBALS['TYPO3_DB']->sql_free_result($dbres);
                }
                        // delete old data:
                if ((rand()%100) <= 1) {                // a possibility of 1 % for garbage collection.
@@ -530,6 +531,7 @@ class tslib_feUserAuth extends t3lib_userAuth {
                                        $count = true;
                                        $this->sesData = unserialize($sesDataRow['content']);
                                }
+                               $GLOBALS['TYPO3_DB']->sql_free_result($dbres);
                        }
                }
 
@@ -545,6 +547,7 @@ class tslib_feUserAuth extends t3lib_userAuth {
                                if ($sesDataRow = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($dbres)) {
                                        $count = true;
                                }
+                               $GLOBALS['TYPO3_DB']->sql_free_result($dbres);
                        }
                }