Work on bad accesses and then memory leaks.

But it leaks.