Using strdup pointer as map key causes to a memory leak

后端 未结 0 1959
野趣味
野趣味 2021-01-12 09:57

We are having a \'Entry\' class like below and std map with set of Entries. at the end we clean the map but valgrind shows possible leaks of the memory allocated via strdup

相关标签:
回答
  • 消灭零回复
提交回复
热议问题