malloc(), realloc().. the dark side powerful it is

Nick, I have added your replacement for free() to the arduino installation's wired.c and added the following to the top of stdlib.h

// nick's fix for heap allocation bugs
#define free good_free

Now by making a typo in either file I can get a compilation error, so I know I'm in the right files and that they are getting rebuilt when I compile a sketch.

However, if do not rename "myfree" to good_free it still compiles, indicating that this #define is not redirecting calls to free.

Am I missing a step to link this in?

Thx.