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 工具只显示内存泄漏!
with --leak-check=fullor--leak-check=full它显示内存泄漏(这很好)但也显示未初始化问题和/或条件跳转问题
--leak-check=full
谢谢!
您可以删除未初始化的值读取,包括用于跳转的--undef-value-errors=no. 我不知道你是否可以禁用其他类型的错误,例如堆损坏和双重释放。
--undef-value-errors=no