简体   繁体   中英

A c program to detect memory leak

I have a code running on an embedded platform (Controller), it is regularly freezing. I think the problem is with memory leak. Is there any way to detect memory leak by writing a C program?

Use valgrind to detect memory leak please follow http://valgrind.org/docs/manual/quick-start.html for quick start

Also you need to cross compile it for finding memory leak as you are using embedded system

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM