Q: Did you read the recommended post
Q: Did you try the Hoard
memory allocated yet? Did a make a difference.
The main thing is:
* Valgrind, Purify, Electric Fence and friends can all be VERY useful in finding a problem
* Unfortunately, sometimes you get "false positives": it flags issues that aren't really problems.
* Worse, the tools can also FAIL to find REAL problems. Which might well be the case here.
So be skeptical.
Regardless of what the tool says, *double check* your own code. Or better still, write test cases to verify your algorithms.
IMHO .. PSM