[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)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sun, 25 Mar 2012 19:58:35 +0000 (21:58 +0200)
Add missing sql_free_result in alt_doc.php to free hanging
records properly.

Change-Id: Ic6317ddc7810daf987c3801c13f4f968c4d317e9
Resolves: #34771
Releases: 4.8, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/9866
Reviewed-by: Philipp Gampe
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
typo3/alt_doc.php

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