OpenBSD's built-in memory leak detection
by from OpenBSD Journal on (#6GBV3)
Asannouncedon themisc@mailing list,Otto Moerbeek (otto@),the author of OpenBSD'smalloc(3)implementation[a.k.a. "otto malloc"],has written atutorial on the newmalloc(3) leak detection available in OpenBSD 7.4
Read it at:OpenBSD's built-in memory leak detection
Since the publication of that write-up,Otto hascommittedfurther enhancements:
CVSROOT:/cvsModule name:srcChanges by:otto@cvs.openbsd.org2023/10/22 06:19:26Modified files:lib/libc/stdlib: malloc.3 malloc.c Log message:When option D is active, store callers for all chunks; this avoidsthe 0x0 call sites for leak reports. Also display more info ondetected write of free chunks: print the info about where the chunkwas allocated, and for the preceding chunk as well.ok asou@