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

Merge pull request #14037 from colemanw/dev/core#562

#562 - Remove dao->free from api
parents 356ec83e de866e8d
Branches
Tags
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment