Crashing when new processor is created; checking for memory leaks