------- Comment #3 from sakovacs at freemail dot hu 2006-04-08 02:53 ------- Thanks for the very fast reply. I agree, that such a leakage would be very unlikely. It must be something else, but I don't understand what, I've modified the code:
#include <string> #include <vector> int max = 1000000; void bad() { std::vector<std::string> v; for (int x = 0; x < max; x++) v.push_back(std::string("test")); } int main(int argc, char *argv[]) { bad(); usleep(20000 * 1000); return 0; } I've already tested with valgrind, restested this ^ version too, just like -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27079