[TASK] Add missing sql_free_result in alt_doc.php
authorWouter Wolters <typo3@wouterwolters.nl>
Mon, 19 Mar 2012 20:22:29 +0000 (21:22 +0100)
committerGeorg Ringer <mail@ringerge.org>
Tue, 20 Mar 2012 06:44:40 +0000 (07:44 +0100)
Add missing sql_free_result in alt_doc.php to free hanging
records properly.

Change-Id: If2a6f291bd8839d1b7a2a617a192fe1d175f7cde
Resolves: #34771
Releases: 4.8, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/9757
Reviewed-by: Philipp Gampe
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/alt_doc.php

index efa4f92..939be15 100644 (file)
@@ -1323,6 +1323,8 @@ class SC_alt_doc {
                                }
                                $this->editconf['tt_content'][implode(',',$ecUids)]='edit';
                        }
+
+                       $GLOBALS['TYPO3_DB']->sql_free_result($res);
                }
        }