Aha, I've discovered there's a much better general purpose malloc that one should probably use, dlmalloc by Doug Lea.

Try going to google and searching.