From 20beb60a147315ae1f5826674c35169979773033 Mon Sep 17 00:00:00 2001 From: hvlad Date: Wed, 20 Jan 2010 10:30:58 +0000 Subject: [PATCH] Fixed bug CORE-2820 : Small memory leak in query with PLAN ORDER --- src/jrd/rse.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jrd/rse.cpp b/src/jrd/rse.cpp index c178e1d573..9311de6156 100644 --- a/src/jrd/rse.cpp +++ b/src/jrd/rse.cpp @@ -162,6 +162,9 @@ void RSE_close(thread_db* tdbb, RecordSource* rsb) if (imp_nav->irsb_nav_page) { imp_nav->irsb_nav_btr_gc_lock->enablePageGC(tdbb); + delete imp_nav->irsb_nav_btr_gc_lock; + imp_nav->irsb_nav_btr_gc_lock = NULL; + imp_nav->irsb_nav_page = 0; } }