From: Adam Dickmeiss Date: Fri, 23 Apr 2010 11:33:58 +0000 (+0200) Subject: Call relevance_destroy before nmem_reset X-Git-Tag: v1.4.0~21 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=82ea73ba3f80b690a9c72e316f893561e05291f1;p=pazpar2-moved-to-github.git Call relevance_destroy before nmem_reset This to a void that relevance_destroy refers to NMEM released memory. --- 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);