Can this be configured at runtime using an environment variable? It would be nice to test for bugs like this in dev.
Or just use valgrind, if you can.
To the point, I'm using "/etc/malloc.conf -> AFGJPRX" on most of my systems, which means that virtually everything that runs there is checked. Can you easily do that on Linux? How many apps are you running via valgrind on a daily basis?