Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Valgrind memcheck 报告无效的释放/删除/重新分配。
有没有办法找出这个免费/删除的来源?我怀疑这正在发生一些析构函数。
以下是我使用的 valgrind 选项:
valgrind --track-origins=yes --leak-check=full --show-reachable=yes
Track Origins 会告诉您免费的来源。