Hi,

I think I spotted a memory leak in the spelling correction code.

For the mapping of the new name id's and the life span checking, three
arrays are allocated, of which only the id list is properly freed before
the operation terminates. The date lists are not.

For a reasonably big database (of let's say 100.000 player names), this
would eat about 800KB of heap space per correction run.

Anyone suspected something in this area before?

Joost.


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Scid-users mailing list
Scid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to