fixed some more long standing leaks in generated code