Fixed GOFormat leak and a few other issues.