lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [4/6] git commit: refs/heads/sortfieldwriter - Free sorted_ids in SortFieldWriter a little earlier
Date Sun, 13 Oct 2013 13:59:07 GMT
Free sorted_ids in SortFieldWriter a little earlier


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/98a960ed
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/98a960ed
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/98a960ed

Branch: refs/heads/sortfieldwriter
Commit: 98a960ed16c601569ab1b78e5a3e1e9302065180
Parents: 393723d
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Thu Sep 26 02:28:04 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Sun Oct 13 15:10:26 2013 +0200

----------------------------------------------------------------------
 core/Lucy/Index/SortFieldWriter.c | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/98a960ed/core/Lucy/Index/SortFieldWriter.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/SortFieldWriter.c b/core/Lucy/Index/SortFieldWriter.c
index ca2ce30..4ab3ff0 100644
--- a/core/Lucy/Index/SortFieldWriter.c
+++ b/core/Lucy/Index/SortFieldWriter.c
@@ -466,6 +466,8 @@ SortFieldWriter_Refill_IMP(SortFieldWriter *self) {
     if (ivars->run_tick > ivars->run_max) {
         DECREF(ivars->sort_cache);
         ivars->sort_cache = NULL;
+        FREEMEM(ivars->sorted_ids);
+        ivars->sorted_ids = NULL;
     }
 
     return count;


Mime
View raw message