How do you test for memory leaks?

Technical