Leak was detected by mocha
Don't leak a tmp_length variable in the global namespace
Thanks for pointing out that mistake; however, after reviewing the code, I realized that the real problem is that I misspelled the variable on line 1080. If you want to write a new patch, I'll pull that.
I've pushed a second commit in the existing pull request. You can pull --squash to get a single commit out of it
Fix typo resulting in global leak of 'tmp_length' variable