squash potential space leaks