fix global leak
Merge pull request #1 from emarschner/patch-1

fix global leak