Fix more memory leaks.