Fixed leaks.