How to detect memory leaks of C programs in Linux? I also have access to the source code of the program.
如何在Linux中检测C程序的内存泄漏? 我也可以访问该程序的源代码。
There are many posts related to this:
有很多与此相关的帖子:
Easy and quick tools on Linux (while not very accurate): http://blog.thewebsitepeople.org/2011/03/linux-memory-leak-detection/
Linux上的便捷工具 (虽然不太准确): http : //blog.thewebsitepeople.org/2011/03/linux-memory-leak-detection/
Valgrind: manual and a tutorial.
gperftools has the Google Heap Profiler which can checks for memory leaks.
gperftools具有Google Heap Profiler ,可以检查内存泄漏。
翻译自: https://www.systutorials.com/how-to-detect-memory-leaks-of-c-programs-in-linux/