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
This seems like a false positive. This can be suppressed as described in the manual