From 82f5e43b4df769c971ecc359303e41e227692447 Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Mon, 21 Oct 2013 15:01:32 -0400 Subject: [PATCH] CRM-13628 fix memory leak in note deletion by freeing DAO --- CRM/Core/BAO/Note.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Core/BAO/Note.php b/CRM/Core/BAO/Note.php index 57ddada393..7044ad24db 100644 --- a/CRM/Core/BAO/Note.php +++ b/CRM/Core/BAO/Note.php @@ -309,10 +309,12 @@ class CRM_Core_BAO_Note extends CRM_Core_DAO_Note { $childNote = new CRM_Core_DAO_Note(); $childNote->id = $childId; $childNote->delete(); + $childNote->free(); $recent[] = $childId; } $return = $note->delete(); + $note->free(); if ($showStatus) { CRM_Core_Session::setStatus($status, ts('Deleted'), 'success'); } -- 2.25.1