Because our app has hard performance and memory constraints, our coding standards forbid the use of the default heap — ie, no malloc, no default new
malloc
new
Poison it! If you are using GCC, there is a pragma for this:
#ifdef __GNUC__ /* poision memory functions */ # pragma GCC poison malloc new #endif