I just discovered this and thought I'd share the knowledge - if you've got a memory problem that sucks to debug, you may want to use Apple's built-in tools. If you're coding in Cocoa, check out NSDebug.h (I've known about this one for awhile).
What I didn't know is that there are some nice tools that turn on debugging in malloc/free. Check out
http://developer.apple.com/techpubs/...ocOptions.html for more info.
Basically, these tools will make your program more likely to crash immediately if there's a memory problem. This is a good thing, because often, memory problems will cause your code to crash, but it'll happen far from the actual problem area, making it a bitch+ to debug.