From de866e8dcff21350c89429f3b22f86c2e6c8144c Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 11 Apr 2019 19:50:09 -0400 Subject: [PATCH] dev/core#562 - Remove dao->free from api --- Civi/API/SelectQuery.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/Civi/API/SelectQuery.php b/Civi/API/SelectQuery.php index f7b61cd891..752159b3d7 100644 --- a/Civi/API/SelectQuery.php +++ b/Civi/API/SelectQuery.php @@ -105,7 +105,6 @@ abstract class SelectQuery { $this->apiFieldSpec = $this->getFields(); $this->query = \CRM_Utils_SQL_Select::from($bao->tableName() . ' ' . self::MAIN_TABLE_ALIAS); - $bao->free(); // Add ACLs first to avoid redundant subclauses $this->checkPermissions = $checkPermissions; @@ -145,7 +144,6 @@ abstract class SelectQuery { while ($result_dao->fetch()) { if (in_array('count_rows', $this->select)) { - $result_dao->free(); return (int) $result_dao->c; } $result_entities[$result_dao->id] = []; @@ -166,7 +164,6 @@ abstract class SelectQuery { } }; } - $result_dao->free(); return $result_entities; } -- 2.25.1