Fix a few more small memory leaks