Skip to content

Commit

Permalink
DirectoryIndexReader memleak fix provided by Anthony
Browse files Browse the repository at this point in the history
  • Loading branch information
borivojko committed Aug 12, 2013
1 parent 94694ad commit e8e3d20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/CLucene/index/DirectoryIndexReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,9 @@ CL_NS_DEF(index)
*/
void DirectoryIndexReader::startCommit() {
if (segmentInfos != NULL) {
if (rollbackSegmentInfos != NULL) {
_CLDELETE(rollbackSegmentInfos);
}
rollbackSegmentInfos = segmentInfos->clone();
}
rollbackHasChanges = hasChanges;
Expand Down

0 comments on commit e8e3d20

Please sign in to comment.