What are some tips I can use to avoid memory leaks in my applications? In my current project I use a tool \"INSURE++\" which finds the memory leak and generate the report. <
Use a smart pointer, such as std::shared_ptr (C++0x), std::tr1::shared_ptr (TR1), or boost::shared_ptr. Of course this solution only works with C++ -- you're on your own in C.