I'm slightly unclear about your question, but I'll try to answer it.
For memory leak detection, yes, CppUTest support new, new[] and malloc memory leak detection.
The new/new[] is on by default, though the leak information isn't enabled them. To do that, you have to compile your production code with an additional header. You can find what to do at:
http://cpputest.org/node/25
With this additional header, there is also malloc/free support. Though, it uses scary defines which sometimes trigger scary compilation errors :)
Does that help you further?
Thanks!
Bas
Ah, no. Though you can do it in a similar way :)
I think the biggest problem is that you need to replace the calls using pre-processor macros. One thing you can do is to new some memory in it and call the OS function. Something like:
#define fopen(filename, mode) my_leak_checking_fopen(filename, mode)
Then you need to implement my_leak_checking_fopen and you could allocate some memory. But you need to de-allocate it in the my_leak_checking_fclose then...
Anyways, it is not by default in CppUTest. Sorry!
Bas