Don't leak a tmp_length variable in the global namespace
Fix typo resulting in global leak of 'tmp_length' variable
Merge pull request #6 from strk/master-tmp_length-leak

Don't leak a tmp_length variable in the global namespace