Joe Nelson <[email protected]> writes:
> On Fri, Jan 8, 2021, at 5:40 PM, Joe Nelson wrote:
>> Hi all, I'd like to use Clang's AddressSanitizer and ThreadSanitizer
>> on my OpenBSD development machine.
>
> Following up on this, looks like MALLOC_OPTIONS can help me detect
> use-after-free and double free errors. What I'm missing is a way to
> detect memory leaks in my programs. Any tips?
There's a built-in mechanisms to check for memory leaks:
https://www.drijf.net/malloc/
don't know if it still applies, I tried only once and was like a couple
of years ago (if not more).
HTH