mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/13713] Free SQL results
PHPBB3-13713
This commit is contained in:
parent
2fe0a2ffd9
commit
9eef103e75
3 changed files with 10 additions and 0 deletions
|
@ -70,6 +70,8 @@ abstract class group implements source_interface
|
|||
$groups[$row['group_id']] = $row;
|
||||
$groups[$row['group_id']]['group_name'] = $group_name;
|
||||
}
|
||||
|
||||
$this->db->sql_freeresult($result);
|
||||
}
|
||||
return $groups;
|
||||
}
|
||||
|
@ -97,6 +99,8 @@ abstract class group implements source_interface
|
|||
$group_ids[] = $row['group_id'];
|
||||
}
|
||||
|
||||
$this->db->sql_freeresult($result);
|
||||
|
||||
// Grab group data
|
||||
$groups = $this->get_groups();
|
||||
|
||||
|
|
|
@ -76,6 +76,8 @@ abstract class user implements source_interface
|
|||
];
|
||||
}
|
||||
|
||||
$this->db->sql_freeresult($result);
|
||||
|
||||
return $names;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -80,6 +80,8 @@ class mention_helper
|
|||
{
|
||||
$this->cached_colors['users'][$row['user_id']] = $row['user_colour'];
|
||||
}
|
||||
|
||||
$this->db->sql_freeresult($result);
|
||||
}
|
||||
|
||||
if (!empty($group_ids))
|
||||
|
@ -97,6 +99,8 @@ class mention_helper
|
|||
{
|
||||
$this->cached_colors['groups'][$row['group_id']] = $row['group_colour'];
|
||||
}
|
||||
|
||||
$this->db->sql_freeresult($result);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue