A safer interface for core.stdc
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Tue Feb 10 23:47:03 PST 2015
On 2/8/2015 8:32 AM, Andrei Alexandrescu wrote:
> I think the same. In C++ circles zeroing the pointer after freeing is
> considering an antipattern - what with false sense of security etc. -- Andrei
What worked for me was using a free() that overwrote the free'd memory with
0xFEFEFEFE or something like that. Worked great for finding bugs.
These days, valgrind does an even better job.
More information about the Digitalmars-d
mailing list