Free dao memory during api basic get
authorColeman Watts <coleman@civicrm.org>
Sat, 2 Jan 2016 02:32:36 +0000 (21:32 -0500)
committerColeman Watts <coleman@civicrm.org>
Sat, 2 Jan 2016 02:32:36 +0000 (21:32 -0500)
api/v3/utils.php

index dc71983581da2551c141e0f19f2451671fe123f9..74d0742a953800b592b65e583cb6a72bdf6adc8d 100644 (file)
@@ -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) {