Fix major memory leaks...