a2800276/bencode.js — pull request #3 by clarkf (2012-01-19 21:12:28+00:00)
Title: Global leaks (buf, buf2)

Hey, great library.

One small issue: global leaks. I use mocha as my testsuite, which detects global leaks by default. It noticed that bencode.js leaks `buf` and `buf2`. `buf` is leaked due to automatic semicolon insertion, while `buf2` is just missing a `var`. I've attached a pull request that I've tested.

Thanks!