Fix some small leaks