lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject [1/8] git commit: refs/heads/master - Free sorted_ids in SortFieldWriter a little earlier
Date Tue, 01 Jul 2014 19:35:06 GMT
Repository: lucy
Updated Branches:
  refs/heads/master 4d500c56b -> eb10a8c68


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/dd1a1985
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/dd1a1985
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/dd1a1985

Branch: refs/heads/master
Commit: dd1a19852c7cb191c91599587d03a26484c5a6fa
Parents: 22663de
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Thu Sep 26 02:28:04 2013 +0200
Committer: Marvin Humphrey <marvin@rectangular.com>
Committed: Wed Jun 18 21:22:59 2014 -0700

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


http://git-wip-us.apache.org/repos/asf/lucy/blob/dd1a1985/core/Lucy/Index/SortFieldWriter.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Index/SortFieldWriter.c b/core/Lucy/Index/SortFieldWriter.c
index f34b68e..0d07ce5 100644
--- a/core/Lucy/Index/SortFieldWriter.c
+++ b/core/Lucy/Index/SortFieldWriter.c
@@ -471,6 +471,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