Fix a couple memory leaks