From 4f59764b1c4444ad5929b608d9023c63da22ac42 Mon Sep 17 00:00:00 2001 From: hvlad Date: Mon, 25 Jan 2010 14:54:42 +0000 Subject: [PATCH] Additional patch for bug CORE- 2824 : Small memory and handles leak at every connect\disconnect --- src/jrd/cch.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jrd/cch.cpp b/src/jrd/cch.cpp index ea295077b2..aa459934d1 100644 --- a/src/jrd/cch.cpp +++ b/src/jrd/cch.cpp @@ -1260,7 +1260,8 @@ void CCH_fini(thread_db* tdbb) { QUE que_inst = bcb->bcb_free_lwt.que_forward; QUE_DELETE(*que_inst); - // LatchWait* lwt = (LatchWait*) BLOCK(que_inst, LatchWait*, lwt_waiters); + LatchWait* lwt = (LatchWait*) BLOCK(que_inst, LatchWait*, lwt_waiters); + delete lwt; } #endif }