Smartalloc is a project mainly written in C and C++, it's free.
Smart Memory Allocation With Orphaned Buffer Detection