Don't leak a tmp_length variable in the global namespace

Leak was detected by ``mocha``