don't leak local variables into globals
Merge pull request #5 from stuartf/leakingGlobals

don't leak local variables into globals