Shigang Zan <zanshigang@xxxxxxxxxxx> writes: > My question is does operator new will always call malloc? > When I try to write a tool to monitor malloc/free for memory leak, is it enough? If malloc/free have no problem, can we make sure C++ code also have no problem in memory leak issue? Programs are permitted to define their own version of operator new. However, if you don't do that, then, yes, when using g++, all calls to operator new will call malloc. Ian