fixed some more long standing leaks in generated code
Merge branch 'git-refactor-modelgen' of github.com:AndySomogyi/roadrunner into git-refactor-modelgen
fixed memory leaks in result struct