From 94630b3298c7dca7c7d171681240ca8ad5fd66d0 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 4 Mar 2010 13:10:21 +0100 Subject: [PATCH] Call reclist_destroy before NMEM is reset --- src/session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/session.c b/src/session.c index c41960d..99a02aa 100644 --- a/src/session.c +++ b/src/session.c @@ -498,11 +498,11 @@ enum pazpar2_error_code search(struct session *se, *addinfo = 0; session_enter(se); + reclist_destroy(se->reclist); + se->reclist = 0; nmem_reset(se->nmem); se->relevance = 0; se->total_records = se->total_hits = se->total_merged = 0; - reclist_destroy(se->reclist); - se->reclist = 0; se->num_termlists = 0; live_channels = select_targets(se, filter); if (!live_channels) -- 1.7.10.4