Squash a couple memory leaks.