mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/13713] Free SQL results
PHPBB3-13713
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user