Fix some simple but important memory leaks