Fix leaks.