M
mathog
When looking for memory problems in C programs hooking malloc() (and its
variants) and free() is usually enough to find memory leaks. In C++
memory can be allocated and released by programs which contain none of
these functions (explicitly). Are there any switches in gcc, or in
other C++ compilers, that cause the compiler to route memory
manipulation through these routines, or in some similar way aid in
debugging memory issues?
Thank you,
David Mathog
variants) and free() is usually enough to find memory leaks. In C++
memory can be allocated and released by programs which contain none of
these functions (explicitly). Are there any switches in gcc, or in
other C++ compilers, that cause the compiler to route memory
manipulation through these routines, or in some similar way aid in
debugging memory issues?
Thank you,
David Mathog