Fix leaking then variable
Merge pull request #3 from megawac/patch-1

Fix leaking then variable