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 <[email protected]>
Authored: Thu Sep 26 02:28:04 2013 +0200
Committer: Marvin Humphrey <[email protected]>
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;

Reply via email to