Fixed bug #15532: Memory leak when using old page cache
authorDmitry Dulepov <dmitry.dulepov@gmail.com>
Thu, 9 Sep 2010 09:16:33 +0000 (09:16 +0000)
committerDmitry Dulepov <dmitry.dulepov@gmail.com>
Thu, 9 Sep 2010 09:16:33 +0000 (09:16 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@8771 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tstemplate.php

index 0a90179..65025d7 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-09  Dmitry Dulepov  <dmitry@typo3.org>
+
+       * Fixed bug #15532: Memory leak when using old page cache
+
 2010-09-08  Steffen Gebert  <steffen@steffen-gebert.de>
 
        * Fixed bug #13073: options.pageTree.showNavTitle = 1 does not work in typo3/browse_links.php (Thanks to Sebastian Michaelsen)
index b5ffad0..f7bf304 100644 (file)
@@ -279,6 +279,7 @@ class t3lib_TStemplate      {
                        if ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
                                $currentPageData = unserialize($row['content']);
                        }
+                       $GLOBALS['TYPO3_DB']->sql_free_result($res);
                }
 
                return $currentPageData;
@@ -1664,4 +1665,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class
        include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['t3lib/class.t3lib_tstemplate.php']);
 }
 
-?>
\ No newline at end of file
+?>