Ángel

@angel@triptico.com



curmudgeon / cascarrabias

Websitehttps://triptico.com
tilde.clubhttps://tilde.club/~angel/
Ann Hell Musichttps://exode.me/accounts/annhell
GPG KeyB498DDC28F4584FF
0 ★ 1 ↺

Ángel »
@angel@triptico.com

If you develop in C, you'll probably end up using memory leak detection tools like valgrind, libleak or the scan-build tool from the LLVM compiler. There is a less known tool inside the GCC compiler itself: the -fsanitize=address.

If you use a standard make setup, you can recompile your project doing

make CFLAGS="-fsanitize=address -fno-omit-frame-pointer"
After exiting your program, a summary of memory leak errors (including the line of the source code were it happened) will be printed out.

History