fix memory problem with places & built-in structure types

Thanks to Asumu for tracking down the problem.