I have a problem with many valgrind warnings about possible memory leaks in std::string, like this one:
120 bytes in 4 blocks are possibly lost in loss recor
120 bytes are not enough for the pool. Do you exit() from your program?