Fixes a global leak
Merge pull request #4 from claudioc/master

Fixes a global leak