From: Adam Dickmeiss Date: Thu, 4 Mar 2010 12:10:21 +0000 (+0100) Subject: Call reclist_destroy before NMEM is reset X-Git-Tag: v1.4.0~110^2~1 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=94630b3298c7dca7c7d171681240ca8ad5fd66d0;p=pazpar2-moved-to-github.git Call reclist_destroy before NMEM is reset --- 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)