Fix remaining small memory leaks.