From: Coleman Watts Date: Sat, 2 Jan 2016 02:32:36 +0000 (-0500) Subject: Free dao memory during api basic get X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a512c9253cf1d640884c673b32e7557ae5f5d1ce;p=civicrm-core.git Free dao memory during api basic get --- diff --git a/api/v3/utils.php b/api/v3/utils.php index dc71983581..74d0742a95 100644 --- a/api/v3/utils.php +++ b/api/v3/utils.php @@ -569,6 +569,7 @@ function _civicrm_api3_get_using_utils_sql($dao_name, $params, $isFillUniqueFiel } // build query $query = CRM_Utils_SQL_Select::from($dao->tableName() . " a"); + $dao->free(); // populate $where_clauses foreach ($params as $key => $value) {