Added a helper script for testing memory leaks.