From 82ea73ba3f80b690a9c72e316f893561e05291f1 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 23 Apr 2010 13:33:58 +0200 Subject: [PATCH] Call relevance_destroy before nmem_reset This to a void that relevance_destroy refers to NMEM released memory. --- src/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session.c b/src/session.c index 3034f7e..4653238 100644 --- a/src/session.c +++ b/src/session.c @@ -523,8 +523,8 @@ enum pazpar2_error_code search(struct session *se, session_enter(se); reclist_destroy(se->reclist); se->reclist = 0; - nmem_reset(se->nmem); relevance_destroy(&se->relevance); + nmem_reset(se->nmem); se->total_records = se->total_hits = se->total_merged = 0; se->num_termlists = 0; live_channels = select_targets(se, filter); -- 1.7.10.4