Skip to content
Snippets Groups Projects
Unverified Commit 260e7da3 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #18641 from eileenmcnaughton/will-the-real-slim-leaky-please-stand-up

#2073 Fix a real live leak
parents af846d5f 3e8437f3
No related branches found
No related tags found
No related merge requests found
......@@ -204,8 +204,6 @@ SELECT acl.*
protected static function getGroupACLRoles($contact_id) {
$contact_id = CRM_Utils_Type::escape($contact_id, 'Integer');
$rule = new CRM_ACL_BAO_ACL();
$query = " SELECT acl.*
FROM civicrm_acl acl
INNER JOIN civicrm_option_group og
......@@ -228,7 +226,7 @@ SELECT acl.*
$results = [];
$rule->query($query);
$rule = CRM_Core_DAO::executeQuery($query);
while ($rule->fetch()) {
$results[$rule->id] = $rule->toArray();
......@@ -249,7 +247,7 @@ SELECT acl.*
AND acl.entity_table = 'civicrm_acl_role'
";
$rule->query($query);
$rule = CRM_Core_DAO::executeQuery($query);
while ($rule->fetch()) {
$results[$rule->id] = $rule->toArray();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment