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.
