Fixing leaked variables.
Merge pull request #5 from hijonathan/master

Fixing leaked variables