Project

General

Profile

Actions

Task #34771

closed

Add missing sql_free_result in alt_doc.php

Added by Wouter Wolters over 12 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2012-03-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

Description

In the file alt_doc.php there is the function editRegularContentFromId.
This function does not properly free the resource.

if ($GLOBALS['TYPO3_DB']->sql_num_rows($res))    {
    $ecUids=array();
    while($ecRec = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res))    {
        $ecUids[]=$ecRec['uid'];
    }
    $this->editconf['tt_content'][implode(',',$ecUids)]='edit';
}

If accepted I can provide a patch for it:)

Actions

Also available in: Atom PDF