Skip to content

Commit

Permalink
Merge pull request #14037 from colemanw/dev/core#562
Browse files Browse the repository at this point in the history
dev/core#562 - Remove dao->free from api
  • Loading branch information
seamuslee001 authored Apr 12, 2019
2 parents 356ec83 + de866e8 commit 0dcf3c8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Civi/API/SelectQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ public function __construct($entity, $checkPermissions) {
$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;
Expand Down Expand Up @@ -145,7 +144,6 @@ public function run() {

while ($result_dao->fetch()) {
if (in_array('count_rows', $this->select)) {
$result_dao->free();
return (int) $result_dao->c;
}
$result_entities[$result_dao->id] = [];
Expand All @@ -166,7 +164,6 @@ public function run() {
}
};
}
$result_dao->free();
return $result_entities;
}

Expand Down

0 comments on commit 0dcf3c8

Please sign in to comment.