Are you sure you have last code. This is already fixed in master branch
From: roger.bossh...@sungard.com [mailto:roger.bossh...@sungard.com]
Sent: Tuesday, April 29, 2014 6:02 PM
To: clucene-developers@lists.sourceforge.net
Subject: [CLucene-dev] Memory leak in IndexWriter::applyDeletes
Hello,
I think there is a leak in the file IndexWrite.cpp, function
IndexWriter::applyDeletes
for (int32_t i = 0; i < infosEnd; i++) {
IndexReader* reader = NULL;
try {
reader = SegmentReader::get(segmentInfos->info(i), false);
// Apply delete terms to disk segments
// except the one just flushed from ram.
_internal->applyDeletes(bufferedDeleteTerms, reader);
} _CLFINALLY (
if (reader != NULL) {
try {
reader->doCommit();
} _CLFINALLY (
reader->doClose();
_CLLDELETE(reader); // 17.04.2014, memory leak fix; reader was not
deleted
)
}
)
}
// Clean up bufferedDeleteTerms.
docWriter->clearBufferedDeletes();
}
Regards
Roger Bosshard
Roger Bosshard • Head of Development • MarketMap Realtime • SunGard • Route
François-Peyrot 12 • 1218 Le Grand Saconnex, Geneva, Switzerland
Tel +41 22 715 44 52 * Fax +41 22 715 44 11 *
www.sungard.com/marketmap<http://www.sungard.com/marketmap>
[Description: Description: Description: Description:
coc-signature-03-2012]<http://www.capitalize-on-change.com/?email=70150000000Y1Et>
Join the online conversation with SunGard’s customers, partners and industry
experts and find an event near you at:
www.sungard.com/ten<http://www.capitalize-on-change.com/?email=70150000000Y1Et>.
CONFIDENTIALITY: This e-mail (including any attachments) may contain
confidential, proprietary and privileged information, and unauthorized
disclosure or use is prohibited. If you receive this e-mail in error, please
notify the sender and delete this e-mail from your system.
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
CLucene-developers mailing list
CLucene-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/clucene-developers