Fix leak and improve pretty printing.

The indents on closing braces was off a bit.