C++'s std::string pools, debug builds? std::string and valgrind problems

前端 未结 6 595
旧巷少年郎
旧巷少年郎 2021-01-11 16:38

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         


        
6条回答
  •  被撕碎了的回忆
    2021-01-11 17:14

    I had this issue because my program terminated due to an uncaught exception. Apparently the handler for uncaught exceptions does not clean everything up.

提交回复
热议问题