Fix global leak
Merge pull request #1 from ForbesLindesay/patch-1

Fix global leak