lucy git commit: Fix memory leak in HitQueue

2016-10-19 Thread nwellnhof
Repository: lucy Updated Branches: refs/heads/0.5 69dfc886f -> 2671da30a Fix memory leak in HitQueue HitQueue would leak a FieldType if the last SortRule was of type FIELD. This wasn't discovered by our test suite because we always break ties by DOC_ID. Thanks to Serkan Mulayim for the report

[2/4] lucy git commit: Fix memory leak in HitQueue

2016-10-19 Thread nwellnhof
Fix memory leak in HitQueue HitQueue would leak a FieldType if the last SortRule was of type FIELD. This wasn't discovered by our test suite because we always break ties by DOC_ID. Thanks to Serkan Mulayim for the report. Fixes LUCY-315. Project: http://git-wip-us.apache.org/repos/asf/lucy/rep

[3/4] lucy git commit: Stop using strerror

2016-10-19 Thread nwellnhof
Stop using strerror Especially with non-English locales, 'strerror' can return strings in arbitrary encodings. Now that CB_VCatF has more thorough UTF-8 checks, this can result in unwanted exceptions. 'strerror' also isn't thread-safe. Add some utility functions to set the global error object, o

[4/4] lucy git commit: Fix memory leak in HitQueue

2016-10-19 Thread nwellnhof
Fix memory leak in HitQueue HitQueue would leak a FieldType if the last SortRule was of type FIELD. This wasn't discovered by our test suite because we always break ties by DOC_ID. Thanks to Serkan Mulayim for the report. Fixes LUCY-315. Project: http://git-wip-us.apache.org/repos/asf/lucy/rep

[1/4] lucy git commit: Stop using strerror

2016-10-19 Thread nwellnhof
Repository: lucy Updated Branches: refs/heads/0.6 b00ad0783 -> 764a88944 refs/heads/master e30057d75 -> 62cdcf930 Stop using strerror Especially with non-English locales, 'strerror' can return strings in arbitrary encodings. Now that CB_VCatF has more thorough UTF-8 checks, this can result i