From: SourceForge.net <no...@so...> - 2004-08-02 03:54:23
|
Bugs item #1001698, was opened at 2004-08-01 18:59 Message generated for change (Comment added) made by woodsplitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=558446&aid=1001698&group_id=80013 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Maycon Aparecido Gasoto (magsoft) Assigned to: Nobody/Anonymous (nobody) Summary: Memory leaks in StandardFilter.cpp Initial Comment: In line 39 of StandardFilter.cpp after the creation of another token, the previous is ignored, and a memory leak ocurred Token* ret = new Token( buf, t->StartOffset(), t->EndOffset(), type); delete[] buf; return; please place a delete t; after delete [] buf; Token* ret = new Token( buf, t->StartOffset(), t->EndOffset(), type); delete[] buf; delete t; return; and in line return new Token .... place this Token *ret = new Token (trimmed.getBuffer(), t->StartOffset(), t->EndOffset(), type); delete t; return ret; ---------------------------------------------------------------------- Comment By: David Rushby (woodsplitter) Date: 2004-08-01 23:54 Message: Logged In: YES user_id=414645 Thank you for reporting these leaks, but I already fixed them. The fixes appeared in CVS revision 1.3 (April 20, 2004) of StandardFilter.cpp: http://cvs.sourceforge.net/viewcvs.py/clucene/src/CLucene/analysis/standard/StandardFilter.cpp?r1=1.2&r2=1.3 I don't know why these and other fixes have never made it into a CLucene release version. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=558446&aid=1001698&group_id=80013 |