From 0ad111458e036564405a7a41ade339a98594478e Mon Sep 17 00:00:00 2001 From: hvlad Date: Sat, 6 Jun 2015 17:20:12 +0000 Subject: [PATCH] Fixed bug CORE-4830 : Memory leak in SuperServer --- src/jrd/met.epp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jrd/met.epp b/src/jrd/met.epp index 53f7d6f592..24d656f239 100644 --- a/src/jrd/met.epp +++ b/src/jrd/met.epp @@ -4219,7 +4219,7 @@ static DSqlCacheItem* get_dsql_cache_item(thread_db* tdbb, int type, const Fireb { item->obsolete = false; item->locked = false; - item->lock = FB_NEW_RPT(*dbb->dbb_permanent, key.length()) Lock(); + item->lock = FB_NEW_RPT(*attachment->att_pool, key.length()) Lock(); item->lock->lck_type = LCK_dsql_cache; item->lock->lck_owner_handle = LCK_get_owner_handle(tdbb, item->lock->lck_type);