From c1abaf541756c6ef189920f1bfcbfec410d1fb43 Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 10 Dec 2015 17:19:18 +1300 Subject: [PATCH] Free the DAO, if it comes back it's yours Change-Id: Ida6c2a316f3fb5f505f7b24667e88fead174ce08 --- CRM/Contact/BAO/Query.php | 1 + CRM/Contribute/Form/Task.php | 1 + 2 files changed, 2 insertions(+) diff --git a/CRM/Contact/BAO/Query.php b/CRM/Contact/BAO/Query.php index 798f730e8a..802fef5d65 100644 --- a/CRM/Contact/BAO/Query.php +++ b/CRM/Contact/BAO/Query.php @@ -4635,6 +4635,7 @@ civicrm_relationship.is_permission_a_b = 0 while ($dao->fetch()) { $ids[] = $dao->id; } + $dao->free(); return implode(',', $ids); } diff --git a/CRM/Contribute/Form/Task.php b/CRM/Contribute/Form/Task.php index 984256b27d..7ecf9b7ce6 100644 --- a/CRM/Contribute/Form/Task.php +++ b/CRM/Contribute/Form/Task.php @@ -143,6 +143,7 @@ class CRM_Contribute_Form_Task extends CRM_Core_Form { $contributionContactIds["{$result->contact_id}-{$result->contribution_id}"] = $result->contribution_id; } } + $result->free(); $form->assign('totalSelectedContributions', $form->get('rowCount')); } -- 2.25.1